{"id":28074702,"url":"https://github.com/samirpaulb/compress-image","last_synced_at":"2025-05-12T23:44:22.829Z","repository":{"id":39625350,"uuid":"378640386","full_name":"SamirPaulb/compress-image","owner":"SamirPaulb","description":"Compress PNG, JPG, GIF, WEBP, SVG, TIFF, BMP images online in seconds for free! Resize images by pixels or percentages quality or Width/Height","archived":false,"fork":false,"pushed_at":"2023-01-02T06:49:08.000Z","size":3886,"stargazers_count":16,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T23:44:15.931Z","etag":null,"topics":["compress-image","compress-images","frontend","html","javascript"],"latest_commit_sha":null,"homepage":"https://samirpaul1.github.io/compress-image","language":"HTML","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/SamirPaulb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-20T12:30:20.000Z","updated_at":"2024-05-13T06:42:53.000Z","dependencies_parsed_at":"2023-02-01T01:55:14.174Z","dependency_job_id":null,"html_url":"https://github.com/SamirPaulb/compress-image","commit_stats":null,"previous_names":["samirpaulb/compress-image"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamirPaulb%2Fcompress-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamirPaulb%2Fcompress-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamirPaulb%2Fcompress-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamirPaulb%2Fcompress-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamirPaulb","download_url":"https://codeload.github.com/SamirPaulb/compress-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843164,"owners_count":21972867,"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":["compress-image","compress-images","frontend","html","javascript"],"created_at":"2025-05-12T23:44:22.259Z","updated_at":"2025-05-12T23:44:22.814Z","avatar_url":"https://github.com/SamirPaulb.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compress-Image\n\nCompressing image with HTML5.\n\n## Browser Compatibility\n\n| Browser | Version |\n| :------ | :-----: |\n| IE      | 10+     |\n| Chrome  | 22+     |\n| Firefox | 16+     |\n| Safari  | 8+      |\n| Android Browser | 4+ |\n| Chrome for Android | 32+ |\n| iOS Safarri | 7+ |\n\n## Dependencies\n\n1. [Exif.js](https://github.com/exif-js/exif-js)\n2. ES6 Promise polyfill.\n\n## Install\n\nVia npm:\n\n```\nnpm install canvas-compress --save\n```\n\nVia bower:\n\n```\nbower install canvas-compress --save\n```\n\n## Usage\n\n```javascript\n    import { CanvasCompress } from 'canvas-compress';\n\n    let compressor = new CanvasCompress(options);\n\n    compressor.process(fileBlob).then(({ source, result }) =\u003e {\n        const { blob, width, height } = source;\n        const { blob, width, height } = result;\n        ...\n    });\n```\n\n## Options\n\nThere're four optional properties for options object:\n\n- `type\u003cstring\u003e`: output type, default is `image/jpeg`\n\n- `width\u003cnumber\u003e`: output width, default is `1000`\n\n- `height\u003cnumber\u003e`: ouput height, default is `618`\n\n- `quality\u003cnumber\u003e`: output quality, defalut is `0.9`\n\n\n## License\n\nMIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamirpaulb%2Fcompress-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamirpaulb%2Fcompress-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamirpaulb%2Fcompress-image/lists"}