{"id":16048936,"url":"https://github.com/devongovett/resizer-stream","last_synced_at":"2025-06-14T04:39:46.127Z","repository":{"id":23418743,"uuid":"26781434","full_name":"devongovett/resizer-stream","owner":"devongovett","description":"A streaming image resizer","archived":false,"fork":false,"pushed_at":"2014-11-19T18:59:08.000Z","size":576,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T17:05:24.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/devongovett.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}},"created_at":"2014-11-17T22:59:19.000Z","updated_at":"2019-03-13T20:49:51.000Z","dependencies_parsed_at":"2022-07-25T10:02:02.122Z","dependency_job_id":null,"html_url":"https://github.com/devongovett/resizer-stream","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/devongovett%2Fresizer-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fresizer-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fresizer-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fresizer-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devongovett","download_url":"https://codeload.github.com/devongovett/resizer-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244156575,"owners_count":20407533,"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-10-09T00:11:28.202Z","updated_at":"2025-03-18T04:31:02.543Z","avatar_url":"https://github.com/devongovett.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resizer-stream\n\nA streaming image resizer, for Node and the browser. Uses [pica](https://github.com/nodeca/pica)\nto perform high quality image resizing, and supports options to resize proportionally, stretch,\nfit, etc. Handles multi-frame images (e.g. animated GIFs) properly as well, thanks to \n[pixel-stream](https://github.com/devongovett/pixel-stream).\n\n## Installation\n\n    npm install resizer-stream\n\n\n## Example\n\nHere is an example that resizes a JPEG (check out the [jpg-stream](http://github.com/devongovett/jpg-stream) \nmodule for a streaming JPEG decoder and encoder).\n\n```javascript\nvar resize = require('resizer-stream');\n\n// scale the image proportionally to fit within a 300x300 square\nfs.createReadStream('large.jpg')\n  .pipe(new JPEGDecoder)\n  .pipe(resize({ width: 300, height: 300, fit: true }))\n  .pipe(new JPEGEncoder)\n  .pipe(fs.createWriteStream('resized.jpg'));\n```\n\n## Options\n\nThere are many different combinations of options that resizer-stream understands.\n\n* only `width` provided: image is scaled proportionally to width\n* only `height` provided: image is scaled proportionally to height\n* both `width` and `height` provided: image is stretched to fill the provided dimensions\n* `width`, `height`, and `fit: true` provided: image is scaled proportionally to fit inside the provided dimensions\n* `scale` factor provided: image is scaled proportionally by the provided scale factor\n* `allowUpscale`: by default, images are not scaled above their intrinsic size. To allow upscaling, set this option to `true`.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fresizer-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevongovett%2Fresizer-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fresizer-stream/lists"}