{"id":19030518,"url":"https://github.com/sofish/resize.js","last_synced_at":"2025-04-23T16:06:34.275Z","repository":{"id":143449426,"uuid":"62215754","full_name":"sofish/resize.js","owner":"sofish","description":"use canvas to resize image","archived":false,"fork":false,"pushed_at":"2016-06-30T10:32:45.000Z","size":94,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T16:06:26.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sofish.github.io/resize.js/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sofish.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-29T10:00:30.000Z","updated_at":"2022-01-26T21:33:16.000Z","dependencies_parsed_at":"2023-06-26T01:55:14.301Z","dependency_job_id":null,"html_url":"https://github.com/sofish/resize.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fresize.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fresize.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fresize.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fresize.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofish","download_url":"https://codeload.github.com/sofish/resize.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468273,"owners_count":21435452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08T21:18:19.943Z","updated_at":"2025-04-23T16:06:34.258Z","avatar_url":"https://github.com/sofish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use canvas to resize image\n\n## 1. API\n\n```js\noptions = {\n  file: file                              // HTMLImageElement or File\n  maxWidth: 640\n  maxHeight: 640\n  callback: function(result) {},\n  readAsDataURL: false,                   // by default return a blob\n  keepExif: true                          // by default keep Exif for image/jpeg\n}\n\nresize(options);\n```\n\nclick to view [demo](http://sofish.github.io/resize.js/).\n\n## 2. Development\n\n```bash\n$ npm install .\n$ npm run build         // build for production\n$ npm run watch         // watch to develop\n$ npm test              // test in browser\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fresize.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofish%2Fresize.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fresize.js/lists"}