{"id":18418869,"url":"https://github.com/retheviper/resize-api","last_synced_at":"2025-09-01T17:39:32.200Z","repository":{"id":228807785,"uuid":"774967064","full_name":"retheviper/resize-api","owner":"retheviper","description":"Image Resize API","archived":false,"fork":false,"pushed_at":"2024-03-20T14:46:46.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T08:56:15.018Z","etag":null,"topics":["actix-web","image-processing","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":false,"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/retheviper.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}},"created_at":"2024-03-20T14:24:14.000Z","updated_at":"2024-04-02T10:15:53.000Z","dependencies_parsed_at":"2024-03-20T15:49:07.007Z","dependency_job_id":"743f531a-2d97-4d25-8f7c-ddbd69581585","html_url":"https://github.com/retheviper/resize-api","commit_stats":null,"previous_names":["retheviper/resize-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/retheviper/resize-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retheviper%2Fresize-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retheviper%2Fresize-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retheviper%2Fresize-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retheviper%2Fresize-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retheviper","download_url":"https://codeload.github.com/retheviper/resize-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retheviper%2Fresize-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264169507,"owners_count":23567312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["actix-web","image-processing","rust"],"created_at":"2024-11-06T04:14:51.841Z","updated_at":"2025-07-08T00:39:40.681Z","avatar_url":"https://github.com/retheviper.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image resize API\n\n## TL;DR\n\nA simple API that just resizes images and returns as webp.\n\n## Description\n\nActix-web based API that resizes images.\nUsing the `image` crate, the API downloads the image from the provided URL, resizes it to the specified width, and returns the resized image.\nSet `.env` file with the following environment variables:\n- `RUST_LOG`: The log level for the application\n- `PORT`: The port on which the server will run\n- `MOUNT_PATH`: The path to mount (where images will be stored)\n- `ENVIRONMENT`: The environment in which the application is running\n  - `dev`: Development environment (default, allows url to be any)\n- `MAX_AGE`: The maximum age of the cache\n- `S_MAX_AGE`: The maximum age of the cache for shared caches\n- `ALLOWED_ORIGINS`: The allowed origins for CORS\n\n## Supported image formats (to be resized)\n\n- JPEG\n- PNG\n\nOr any other format will be just returned as is.\n\n## How to run\n\n1. Clone the repository\n2. Run `cargo run` in the root directory\n   1. Or `docker compose up` to run the application in a docker container\n3. The server will start at `http://localhost:8100`\n4. Send a GET request to `http://localhost:8100/v1/images/resize` with the following Query Parameters:\n    - `image_url`: The URL of the image to resize\n    - `width`: The width of the resized image (in pixels)\n\nImage's height will be calculated based on the aspect ratio of the original image.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretheviper%2Fresize-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretheviper%2Fresize-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretheviper%2Fresize-api/lists"}