{"id":29824287,"url":"https://github.com/varungaikwad/image-resizer","last_synced_at":"2026-05-18T06:39:46.036Z","repository":{"id":304751915,"uuid":"1019832713","full_name":"VarunGaikwad/image-resizer","owner":"VarunGaikwad","description":"Resize and generate platform-specific icons (mobile, desktop, web, wearables) from a single image. Drag \u0026 drop interface with responsive design.","archived":false,"fork":false,"pushed_at":"2025-07-15T00:59:13.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T03:03:11.436Z","etag":null,"topics":["css","favicon-generator","file-upload","html","icon-generator","image-processing","image-resizer","javascript","responsive-ui","web-application"],"latest_commit_sha":null,"homepage":"https://image-resizer-x5ow.onrender.com/","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/VarunGaikwad.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-15T00:28:14.000Z","updated_at":"2025-07-15T00:59:16.000Z","dependencies_parsed_at":"2025-07-15T04:46:16.005Z","dependency_job_id":"dbd4caec-88c1-433c-b3e7-04e964565225","html_url":"https://github.com/VarunGaikwad/image-resizer","commit_stats":null,"previous_names":["varungaikwad/image-resizer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VarunGaikwad/image-resizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunGaikwad%2Fimage-resizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunGaikwad%2Fimage-resizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunGaikwad%2Fimage-resizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunGaikwad%2Fimage-resizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VarunGaikwad","download_url":"https://codeload.github.com/VarunGaikwad/image-resizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VarunGaikwad%2Fimage-resizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33167939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: 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":["css","favicon-generator","file-upload","html","icon-generator","image-processing","image-resizer","javascript","responsive-ui","web-application"],"created_at":"2025-07-29T02:43:18.320Z","updated_at":"2026-05-18T06:39:46.012Z","avatar_url":"https://github.com/VarunGaikwad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Icon Resizer\n\nA simple web application to resize images into multiple icon sizes for different platforms like mobile, wearables, desktop, and web extensions. Users can upload an image, select desired icon sizes, and download resized images individually or as a ZIP archive.\n\n---\n\n## Features\n\n- Drag \u0026 drop or select image upload\n- Select multiple icon sizes categorized by device/use case\n- Resize images on the server using Sharp\n- Download resized images individually\n- Download all resized images in a ZIP file\n- Responsive and accessible UI\n\n---\n\n## Tech Stack\n\n- Frontend: HTML, CSS, vanilla JavaScript\n- Backend: Node.js, Express, Multer, Sharp, Archiver\n\n---\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/VarunGaikwad/image-resizer.git\n   cd image-resizer\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Create necessary directories:\n\n   ```bash\n   mkdir uploads resized\n   ```\n\n---\n\n## Usage\n\nStart the server:\n\n```bash\nnpm start\n```\n\nOpen your browser and go to:\nhttp://localhost:5000\n\nUpload an image, select icon sizes, and resize.\n\n---\n\n## API Endpoints\n\n### POST `/resize`\n\n- Accepts multipart/form-data with:\n  - `image`: image file to resize\n  - `sizes`: one or multiple sizes (e.g. 24, 48, 72)\n- Returns JSON with resized image filenames and URLs.\n\n### POST `/download-zip`\n\n- Accepts JSON body:\n  ```json\n  {\n    \"files\": [\"image-24x24.png\", \"image-48x48.png\"]\n  }\n  ```\n- Returns a ZIP archive of requested resized images.\n\n---\n\n## Folder Structure\n\n```plaintext\n/\n├── public/ # Frontend files (HTML, CSS, JS)\n├── uploads/ # Temporary uploads (auto cleaned)\n├── resized/ # Resized images output\n├── server.js # Express backend server\n├── package.json # Project dependencies and scripts\n└── README.md\n```\n\n---\n\n## Notes\n\n- Make sure `uploads` and `resized` folders exist and are writable.\n- Uploaded images larger than requested sizes will be resized, smaller ones will be ignored.\n- Error handling is minimal; improve as needed.\n- Tested on Node.js v16+.\n\n---\n\n## License\n\nMIT License © Varun Gaikwd\n\n---\n\n## Acknowledgements\n\n- [Sharp](https://github.com/lovell/sharp) for image processing\n- [Archiver](https://github.com/archiverjs/node-archiver) for ZIP file creation\n- Inspired by common icon size requirements for various platforms\n\n---\n\nFeel free to contribute or raise issues!\n\n---\n\nIf you want me to add badges, CI instructions, or anything else, just ask!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarungaikwad%2Fimage-resizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarungaikwad%2Fimage-resizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarungaikwad%2Fimage-resizer/lists"}