{"id":49453771,"url":"https://github.com/garrows/IMMP","last_synced_at":"2026-06-18T22:01:08.415Z","repository":{"id":57272709,"uuid":"21485485","full_name":"garrows/IMMP","owner":"garrows","description":"Image Manipulation Middleware Proxy","archived":false,"fork":false,"pushed_at":"2017-01-30T05:33:54.000Z","size":2058,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T00:14:22.512Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garrows.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":"2014-07-04T04:35:29.000Z","updated_at":"2017-06-02T03:52:46.000Z","dependencies_parsed_at":"2022-09-01T00:22:36.499Z","dependency_job_id":null,"html_url":"https://github.com/garrows/IMMP","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/garrows/IMMP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrows%2FIMMP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrows%2FIMMP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrows%2FIMMP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrows%2FIMMP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garrows","download_url":"https://codeload.github.com/garrows/IMMP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garrows%2FIMMP/sbom","scorecard":{"id":419160,"data":{"date":"2025-08-11","repo":{"name":"github.com/garrows/IMMP","commit":"1ae610a325922924d0045cd7050a4a445a2f464e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":4,"reason":"Found 8/18 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T00:43:49.252Z","repository_id":57272709,"created_at":"2025-08-19T00:43:49.252Z","updated_at":"2025-08-19T00:43:49.252Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34508867,"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":"2026-04-30T04:01:03.704Z","updated_at":"2026-06-18T22:01:08.409Z","avatar_url":"https://github.com/garrows.png","language":"JavaScript","funding_links":[],"categories":["📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"IMMP: Image Manipulation Middleware Proxy\n=========================================\n\n[![NPM](https://nodei.co/npm/immp.png)](https://nodei.co/npm/immp/)\n\nThis is an express middleware for manipulating images with imageMagick/graphicsMagic. You can also set it up to act as a proxy.\n\nThis is very useful for web development where thumbnails and cropping is done. Instead of doing it by hand, just specify the size and ratio in the url.\n\n`http://localhost:3000/im/?image=test.jpg\u0026crop=16x9\u0026resize=200x113`\n\nIf you enable proxy mode, you can proxy images from other services like Amazon S3\n\n`http://localhost:3000/im/?http://s3.amazonaws.com/yourbucket/youimg.png\u0026crop=1x1`\n\nInstall\n-------\nInstall the immp module with\n\n```\nnpm install --save immp\n```\n\nYou will also need either imageMagick or graphicsMagic installed.\n\nOn linux install them using:\n```\nsudo apt-get install imagemagick graphicsmagick\n```\nor Mac\n```\nbrew install imagemagick\nbrew install graphicsmagick\n```\n\nSetup\n-----\n\nIn your app.js (assuming a standard express.js setup), add the following lines.\n\n```\nvar immp = require('immp');\n\napp.use('/im/*', immp({\n    ttl: 1000 * 60 * 60 * 24 * 7, // 1 week\n    imageMagick: true,\n    graphicsMagick: true,\n    cacheFolder: os.tmpdir(),\n    allowProxy: false,\n    imageDir: process.cwd()\n}));\n```\n\nAll of the config variables are optional and default to the values in the example above.\n\n\nAPI Usage\n---------\nCrop an image to 16:9\n\n`http://localhost:3000/im/?image=test.jpg\u0026crop=16x9`\n\nResize an image to 100x100\n\n`http://localhost:3000/im/?image=test.jpg\u0026resize=100x100`\n\nResize to 100x100 and change the ratio to 1:1\n\n`http://localhost:3000/im/?image=test.jpg\u0026crop=1x1\u0026resize=100x100`\n\nCrop the source image to the custom shape (source width, height, x, and y). See\n[GraphicsMagic crop](http://www.graphicsmagick.org/GraphicsMagick.html#details-crop)\nfor more information. Non-negative integers only.\n\n`http://localhost:3000/im/?image=test.jpg\u0026sx=100\u0026sy=100\u0026sw=100\u0026sy=100`\n\nIf you enable proxy mode, you can proxy images from other services like Amazon S3\n\n`http://localhost:3000/im/?http://s3.amazonaws.com/yourbucket/youimg.png\u0026crop=1x1`\n\n\n\n\nDevelopment\n-----------\n\nIf you want to help contribute (thank you), there is an included server and test images in the that will help you. No automated unit tests yet though.\n\n\nSetup with\n```\ngit clone git@github.com:garrows/IMMP.git\ncd IMMP\nnpm install\nnpm start\n```\n\nNow go to http://localhost:3000/\n\nFor faster development open these 2 commands in different windows\n```\nnodemon\nlive-reload --port=35729 --delay=600\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarrows%2FIMMP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarrows%2FIMMP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarrows%2FIMMP/lists"}