{"id":16393037,"url":"https://github.com/progm/node-image-resizer","last_synced_at":"2026-05-16T09:32:42.104Z","repository":{"id":73454649,"uuid":"50363223","full_name":"ProGM/node-image-resizer","owner":"ProGM","description":"A simple stateless on-the-fly image resizer in node.js.","archived":false,"fork":false,"pushed_at":"2016-11-28T16:18:57.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T21:29:16.440Z","etag":null,"topics":["heroku","imagemagick","nodejs","resize-images"],"latest_commit_sha":null,"homepage":null,"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/ProGM.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-01-25T16:15:11.000Z","updated_at":"2018-04-20T12:47:53.000Z","dependencies_parsed_at":"2023-02-28T13:01:53.614Z","dependency_job_id":null,"html_url":"https://github.com/ProGM/node-image-resizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProGM/node-image-resizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fnode-image-resizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fnode-image-resizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fnode-image-resizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fnode-image-resizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProGM","download_url":"https://codeload.github.com/ProGM/node-image-resizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProGM%2Fnode-image-resizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33096873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["heroku","imagemagick","nodejs","resize-images"],"created_at":"2024-10-11T04:52:12.505Z","updated_at":"2026-05-16T09:32:42.086Z","avatar_url":"https://github.com/ProGM.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Node Image Resizer\n=====================\n\nA simple stateless on-the-fly image resizer in node.js.\n\n[Try it live!](https://node-image-resizer.herokuapp.com/external/100x100/https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png)\n\n\n## How it works\nSupposing you have a website where you store your images, say `assets.mysite.com`.\n\nAdd to the ENV variables your current image domain:\n\n```\nIMAGE_URL=http://assets.mysite.com\n```\n\nThen deploy this app, for instance, on `resizer.mysite.com`.\n\nNow you can proxy image requests to the resizer, and they got magically resized!\n\nFor instance, if you have an image on `http://assets.mysite.com/my_folder/myimage.png`, you can call `http://resizer.mysite.com/300x300/my_folder/myimage.png` to obtain a 300x300 resized version!\n\nYou can also get the original image by calling `http://resizer.mysite.com/original/my_folder/myimage.png`\n\n## External links\n\nYou can also resize images from external urls.\n\nYou just have to add `/external/` as path fragment.\n\nExample: `http://resizer.mysite.com/external/300x300/http://www.my.image.com/image.png`\n\n## CDN\n\nThis app does it's best when placed behind a CDN like `cloudflare` or `cloudfront`, since the resized image get cached by the CDN cache for one year.\n\n## Whitelist allowed file types for resizing\n\nJust set an ENV like this:\n\n```bash\nALLOWED_TYPES=png,jpg,jpeg,gif\n```\n\nListing all allowed types. Types must be comma-separated file types. They are parsed using [type-is](https://github.com/jshttp/type-is).\n\n## Deploy on Heroku\n\nTo deploy on heroku, you have to change the default buildpacks setup.\n\nYou can do it by using:\n```bash\nheroku buildpacks:add https://github.com/ddollar/heroku-buildpack-apt.git\nheroku buildpacks:add https://github.com/ProGM/heroku-buildpack-nodejs\nheroku buildpacks:remove heroku/nodejs\n```\n\nTo check the correct setup run `heroku buildpacks`, you should see something like this:\n\n```\n=== your-app Buildpack URLs\n1. https://github.com/ddollar/heroku-buildpack-apt.git\n2. https://github.com/ProGM/heroku-buildpack-nodejs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogm%2Fnode-image-resizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogm%2Fnode-image-resizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogm%2Fnode-image-resizer/lists"}