{"id":22489893,"url":"https://github.com/adamlacombe/sharp-image-proxy","last_synced_at":"2025-04-14T11:51:30.224Z","repository":{"id":159600404,"uuid":"291508143","full_name":"adamlacombe/sharp-image-proxy","owner":"adamlacombe","description":":airplane: An on the fly image optimization microservice","archived":false,"fork":false,"pushed_at":"2021-05-03T00:13:55.000Z","size":18,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T00:51:18.377Z","etag":null,"topics":["avif","image-optimization","microservice","nodejs","on-the-fly","proxy","sharp","typescript","webp"],"latest_commit_sha":null,"homepage":"https://adamlacombe.com/blog/how-to-convert-images-to-avif-in-nodejs?utm_source=github\u0026utm_medium=repo_description","language":"TypeScript","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/adamlacombe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"adamlacombe","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-08-30T16:28:13.000Z","updated_at":"2024-11-20T19:50:33.000Z","dependencies_parsed_at":"2023-09-01T08:07:46.950Z","dependency_job_id":null,"html_url":"https://github.com/adamlacombe/sharp-image-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlacombe%2Fsharp-image-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlacombe%2Fsharp-image-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlacombe%2Fsharp-image-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlacombe%2Fsharp-image-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamlacombe","download_url":"https://codeload.github.com/adamlacombe/sharp-image-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877986,"owners_count":21176239,"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":["avif","image-optimization","microservice","nodejs","on-the-fly","proxy","sharp","typescript","webp"],"created_at":"2024-12-06T17:21:05.517Z","updated_at":"2025-04-14T11:51:30.172Z","avatar_url":"https://github.com/adamlacombe.png","language":"TypeScript","readme":"# sharp-image-proxy\n\nAn on the fly image optimization microservice. \n\nI'm using this to dynamically resize, compress and serve images on my [blog](https://adamlacombe.com/blog/how-to-convert-images-to-avif-in-nodejs?utm_source=github\u0026utm_medium=repo_readme). \n\nIt's hosted on [Google Cloud Run](https://cloud.google.com/run) behind [Cloudflare](https://www.cloudflare.com/) with the following page rule settings:\n\n![Screenshot from 2020-09-09 19-18-19](https://user-images.githubusercontent.com/2395597/92591864-3df87080-f2d1-11ea-80ed-1fab70a4bbc9.png)\n\n## Run using Docker\n```bash\ndocker run \\\n  -it --rm \\\n  -p 8080:8080 \\\n  --name sharp-image-proxy \\\n  docker.pkg.github.com/adamlacombe/sharp-image-proxy/sharp-image-proxy:latest\n```\n\n## Features\n- Resize images proportionally.\n- Support for webp, avif, png, jpeg and tiff.\n\n## Options\n- url\n- width\n- height\n- format = `webp` | `avif` | `png` | `jpeg` | `tiff`\n- quality = `1` - `100` (default `80`)\n\n## Example requests\n- `/?url=https://via.placeholder.com/500\u0026width=300`\n- `/?url=https://via.placeholder.com/500\u0026width=300\u0026format=webp`\n- `/?url=https://via.placeholder.com/500\u0026width=300\u0026format=webp\u0026quality=50`\n- `/?url=https://via.placeholder.com/500\u0026width=300\u0026format=avif\u0026quality=30`\n\n\n[![Run on Google Cloud](https://storage.googleapis.com/cloudrun/button.svg)](https://console.cloud.google.com/cloudshell/editor?shellonly=true\u0026cloudshell_image=gcr.io/cloudrun/button\u0026cloudshell_git_repo=https://github.com/adamlacombe/sharp-image-proxy)","funding_links":["https://github.com/sponsors/adamlacombe"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlacombe%2Fsharp-image-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamlacombe%2Fsharp-image-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlacombe%2Fsharp-image-proxy/lists"}