{"id":20805938,"url":"https://github.com/sekedus/imgpa","last_synced_at":"2026-04-29T10:33:34.425Z","repository":{"id":250109962,"uuid":"833442092","full_name":"sekedus/imgpa","owner":"sekedus","description":"An API to resize, change formats, and adjust image quality with ease.","archived":false,"fork":false,"pushed_at":"2026-01-11T05:44:04.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T10:21:29.482Z","etag":null,"topics":["api","image","image-compression","image-compressor","image-manipulation","image-optimization","image-processing-api","project","sharp","vercel"],"latest_commit_sha":null,"homepage":"https://imgpa.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sekedus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-25T04:19:55.000Z","updated_at":"2026-01-11T05:44:07.000Z","dependencies_parsed_at":"2025-03-12T03:30:40.404Z","dependency_job_id":"593286b5-c6b3-493e-a0d1-092ac7a65c57","html_url":"https://github.com/sekedus/imgpa","commit_stats":null,"previous_names":["sekedus/imgpa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sekedus/imgpa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sekedus%2Fimgpa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sekedus%2Fimgpa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sekedus%2Fimgpa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sekedus%2Fimgpa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sekedus","download_url":"https://codeload.github.com/sekedus/imgpa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sekedus%2Fimgpa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32421858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["api","image","image-compression","image-compressor","image-manipulation","image-optimization","image-processing-api","project","sharp","vercel"],"created_at":"2024-11-17T19:17:18.099Z","updated_at":"2026-04-29T10:33:34.413Z","avatar_url":"https://github.com/sekedus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IMGPA\n\n[![GitHub repo size](https://img.shields.io/github/repo-size/sekedus/imgpa?label=Size)](https://github.com/sekedus/imgpa) [![GitHub Clones](https://img.shields.io/badge/dynamic/json?color=success\u0026label=Clone\u0026query=count\u0026url=https://gist.githubusercontent.com/sekedus/632700068f917889cd3d45a2b354a7e5/raw/clone.json\u0026logo=github)](https://github.com/MShawon/github-clone-count-badge) [![GitHub License](https://img.shields.io/github/license/sekedus/imgpa?label=License)](https://github.com/sekedus/imgpa/blob/main/LICENSE)\n\nIMGPA (Image Processing API) provides an API for image manipulation using [sharp](https://github.com/lovell/sharp). The API allows you to resize images, change formats, and adjust quality.\n\nㅤ\n## Table of Contents\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Query Parameters](#query-parameters)\n  - [Supported Image Formats](#supported-image-formats)\n  - [Example Request](#example-request)\n- [Deployment](#deployment)\n  - [One-Click Deploy](#one-click-deploy)\n  - [Manual Deployment](#manual-deployment)\n- [Credits](#credits)\n- [License](#license)\n\nㅤ\n## Requirements\n\n- [Node.js](https://nodejs.org/en/download)\n\nㅤ\n## Installation\n\n1. Open your terminal and clone this repository:\n\n    ```bash\n    git clone https://github.com/sekedus/imgpa.git\n    ```\n\n2. Change to the cloned directory:\n\n    ```bash\n    cd imgpa\n    ```\n\n3. Install the required dependencies:\n\n    ```bash\n    npm install\n    ```\n\n4. Start the server:\n\n    ```bash\n    npm start\n    ```\n\n5. The server will start on port `3000` by default. You can access the API at `http://localhost:3000/imgpa`.\n\nㅤ\n## Usage\n\nEndpoint: `/imgpa`\n\n### Query Parameters\n\n| Name      | Parameter   | Description                                        | Info           |\n|-----------|-------------|----------------------------------------------------|----------------|\n| URL       | `url`       | The URL of the image to manipulate (required).     |                |\n| Width     | `w`         | Sets the width of the output image, in pixels.     |                |\n| Height    | `h`         | Sets the height of the output image, in pixels.    |                |\n| Fit       | `fit`       | Sets how to fit the image to its given dimensions. | [info][fit]    |\n| Quality   | `q`         | Defines the quality of the output image (1-100).   |                |\n| Format    | `format`    | Encodes the output image to a specific format.     | [info][format] |\n| Filename  | `filename`  | The name to save the output image as.              |                |\n| Referer   | `ref`       | Sets the HTTP Referer header for the request.      |                |\n| Proxy     | `proxy`     | Base URL of a proxy to use if direct access to the image URL is not possible. | |\n| Hide Error| `hide_error` or `he` | Allows processing even if image has issues. | |\n\n[fit]: https://sharp.pixelplumbing.com/api-resize#resize\n[format]: #supported-image-formats\n\n**Note:** Proxy support uses [cf-proxy-ex](https://github.com/1234567Yang/cf-proxy-ex). You can create your own proxy through a Cloudflare Worker.\n\n### Example Request\n\n```\nhttp://localhost:3000/imgpa?url=https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/2160px-Google_2015_logo.svg.png\u0026w=340\u0026h=226\u0026fit=contain\u0026quality=80\u0026format=webp\u0026filename=new-image\n```\n\n### Supported Image Formats\n\n\u003c!-- https://github.com/lovell/sharp/blob/v0.33.4/docs/README.md#formats --\u003e\n\n- jpeg\n- png\n- webp\n- gif\n- avif\n- tiff\n- svg\n\nFor more details, see the [sharp documentation on supported formats](https://sharp.pixelplumbing.com/#formats).\n\nㅤ\n## Deployment\n\n### One-Click Deploy\n\nClick the button below to deploy this project to Vercel:\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fsekedus%2Fimgpa\u0026repository-name=image-processing-api)\n\nㅤ\n### Manual Deployment\n\n1. Install Vercel CLI globally:\n\n    ```bash\n    npm install -g vercel\n    ```\n\n2. Log in to your Vercel account:\n\n    ```bash\n    vercel login\n    ```\n\n3. Deploy your application to Vercel:\n\n    ```bash\n    vercel --prod\n    ```\n\n4. Follow the prompts to complete the deployment process.\n\nㅤ\n## Credits\n\n- [sharp](https://github.com/lovell/sharp)\n- [Vercel](https://github.com/vercel)\n\nㅤ\n## License\n\nThis project is licensed under the GNU General Public License v3.0. See the [LICENSE](https://github.com/sekedus/imgpa/blob/main/LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsekedus%2Fimgpa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsekedus%2Fimgpa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsekedus%2Fimgpa/lists"}