{"id":19258946,"url":"https://github.com/lassehaslev/imagesizerjs","last_synced_at":"2026-06-18T15:33:01.168Z","repository":{"id":89976118,"uuid":"62321915","full_name":"LasseHaslev/imagesizerjs","owner":"LasseHaslev","description":"Adds image size options to filname ( Automaticly ads -{width}x{height}-resize to filename ).","archived":false,"fork":false,"pushed_at":"2017-03-20T06:10:36.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T18:16:59.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LasseHaslev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-30T15:29:08.000Z","updated_at":"2017-02-15T22:54:39.000Z","dependencies_parsed_at":"2023-06-14T04:01:29.946Z","dependency_job_id":null,"html_url":"https://github.com/LasseHaslev/imagesizerjs","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/LasseHaslev/imagesizerjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fimagesizerjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fimagesizerjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fimagesizerjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fimagesizerjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LasseHaslev","download_url":"https://codeload.github.com/LasseHaslev/imagesizerjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasseHaslev%2Fimagesizerjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34497353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T19:14:51.289Z","updated_at":"2026-06-18T15:33:01.136Z","avatar_url":"https://github.com/LasseHaslev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @lassehaslev/imagesizerjs\n\u003e Automaticly ads ```-{width}x{height}-resize``` to image filename.\n\n## Installation\nRun ```npm install @lassehaslev/imagesizerjs --save``` in your project folder\n\n## Usage\n#### 1a) Import the script file\n``` html\n\u003cscript src=\"https://raw.githubusercontent.com/LasseHaslev/imagesizerjs/master/src/ImageSize.js\"\u003e\u003c/script\u003e\n```\n\n#### 1b) Or require as module\n``` js\nvar ImageSize = require( '@lassehaslev/imagesizerjs' );\n```\n\n#### 2) Use the class\n``` js\nvar imageSize = new ImageSize( document.querySelector( 'img' ), {\n    steps: 200, // How many pixels before new image\n} );\n```\n\n\n## Development\n``` bash\n# Clone package\ngit clone https://github.com/LasseHaslev/imagesizerjs\n\n# install dependencies\nnpm install\n\n# serve with hot reload at http://localhost:3000/\ngulp watch\n\n# build for production with minification\ngulp --production\n```\n\n## License\n\nMIT, dawg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassehaslev%2Fimagesizerjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flassehaslev%2Fimagesizerjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassehaslev%2Fimagesizerjs/lists"}