{"id":21829724,"url":"https://github.com/0xtlt/express-images","last_synced_at":"2026-05-05T14:06:15.792Z","repository":{"id":136125145,"uuid":"291343675","full_name":"0xtlt/express-images","owner":"0xtlt","description":"resize and crop your images just with a link","archived":false,"fork":false,"pushed_at":"2020-08-30T08:51:38.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-26T17:53:04.659Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xtlt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-29T20:24:46.000Z","updated_at":"2020-09-01T06:24:54.000Z","dependencies_parsed_at":"2023-03-15T03:32:51.620Z","dependency_job_id":null,"html_url":"https://github.com/0xtlt/express-images","commit_stats":null,"previous_names":["thomast404/express-images"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xtlt/express-images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fexpress-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fexpress-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fexpress-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fexpress-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xtlt","download_url":"https://codeload.github.com/0xtlt/express-images/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Fexpress-images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32652554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":[],"created_at":"2024-11-27T18:28:56.462Z","updated_at":"2026-05-05T14:06:15.761Z","avatar_url":"https://github.com/0xtlt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Images 🏙\n\nResize and crop your pictures directly with a link\n\n## Installation 📌\n\n`$ npm install express-images`\n\n## Usage\n\n```javascript\nconst express = require('express');\nconst expressImage = require('express-images');\n\nconst app = express();\n\nexpressImage(app, {\n  folder: __dirname + '/images', // the images folder\n  path: '/media', // the handle\n  cache: __dirname + '/.cacheImages', // Store generated images\n  maxWidth: 1920,\n  maxHeight: 1920,\n  quality: 90, // image quality, 90 is perfect, 100 can be heavy\n  expiration: 10000, // in ms | can be set as false (optional : default false)\n  expirationInterval: 1500, // in ms (optional : default 1000)\n});\n\n// your code...\n```\nYou must add the `__dirname` variable for the cache path and the folder path\n\nJust `folder`, `path` and `cache` settings are required\n\n## Handle usage\n\nTo resize your image you can add : `_{width}x{height}` before your file extension like :\n`cat_500x500.jpg`  \nHeight can be not defined -\u003e `cat_500x.jpg`\n\nYou can resize and crop your image : `_{width}x{height}x{cropHorizontaly}x{cropVerticaly}`  \n`cropHorizontaly` values are : `center` (default), `left` and `right`  \n`cropVerticaly` values are : `center` (default), `top` and `bottom`  \n\n`cropHorizontaly` or/and `cropVerticaly` values can be not defined\n\nexamples :\n\n`cat_500x500xcenter.jpg`, `cat_500x500xcenterxbottom.jpg`, `cat_500x500xxcenter.jpg`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtlt%2Fexpress-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xtlt%2Fexpress-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtlt%2Fexpress-images/lists"}