{"id":22622449,"url":"https://github.com/jesssullivan/fastphotoapi","last_synced_at":"2026-04-19T14:09:00.843Z","repository":{"id":212566309,"uuid":"731244123","full_name":"Jesssullivan/FastPhotoAPI","owner":"Jesssullivan","description":"An efficient, flexible, flask-based image server using Lanczos resampling ","archived":false,"fork":false,"pushed_at":"2024-12-20T20:45:58.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T10:29:54.726Z","etag":null,"topics":["docker","flask","koyeb","lanczos","static-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jesssullivan.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}},"created_at":"2023-12-13T16:42:07.000Z","updated_at":"2025-10-03T17:16:58.000Z","dependencies_parsed_at":"2023-12-15T00:45:25.420Z","dependency_job_id":null,"html_url":"https://github.com/Jesssullivan/FastPhotoAPI","commit_stats":null,"previous_names":["jesssullivan/fastphotoapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jesssullivan/FastPhotoAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesssullivan%2FFastPhotoAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesssullivan%2FFastPhotoAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesssullivan%2FFastPhotoAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesssullivan%2FFastPhotoAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jesssullivan","download_url":"https://codeload.github.com/Jesssullivan/FastPhotoAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jesssullivan%2FFastPhotoAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","flask","koyeb","lanczos","static-api"],"created_at":"2024-12-08T23:15:07.457Z","updated_at":"2026-04-19T14:09:00.824Z","avatar_url":"https://github.com/Jesssullivan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastPhotoAPI\n\nAn efficient, flexible, flask-based image server that uses lanczos resampling to serve optimized cached photos.\n\n```shell\npython3.12 -m venv fast_photo_venv\nsource fast_photo_venv/bin/activate\npip install -r requirements.txt\n```\n\n\n## Usage:\n- Resample \u0026 fetch a cached image `/image/\u003cyourimage\u003e`\n- Resample and fetch an image with a specific max dimension:\n  - `/image/\u003cyourimage\u003e?w=69` or\n  - `/image/\u003cyourimage?h=69\u003e` or\n  - `/image/\u003cyourimage\u003e?w=69\u0026h=42`\n- Fetch the original, unmodified image `/full/\u003cyourimage\u003e`\n\n## Structure:\n\nThis application adopts the factory pattern; `flask run` instantiates the built-in development server by executing `create_app()` at the root of the `app/` package, while `python application.py` creates a new production application, served by waitress. \n\n\n```shell\n.\n├── app\n          ├── __init__.py  #  create and serve development application\n          └── main\n              ├── config\n│             │         ├── conf.py  # Utility configs and methods \n│             │         └── config.cfg  # set directories, max image dimensions, etc\n│             ├── fullsize\n│             │         └── routes.py  # Blueprint routing for serving verbatim image files \n│             ├── __init__.py  # `create_app()` entrypoint\n│             ├── resampled\n│             │         ├── model.py  # Image resampling methods\n│             │         ├── trashd.py  # garbage collector daemon \n│             │         └── routes.py  # Blueprint routing for `/image/`  \n│             └── static\n│                 └── routes.py  # Blueprint routing for `/static/` \n├── application.py  # create and serve production application w/ waitress\n├── cache  # resampled images are dynamically generated adn stored here \n├── Dockerfile  # currently deployed at Koyeb  \n├── pictures # full res pictures go here\n├── README.md  # you are here\n├── static\n│         └── style.css  # index styling\n└── templates\n    ├── index.html  \n    └── upload.html\n```\n\n## Build\n\n*Locally:*\n```dev server:\nflask run # 0.0.0.0:5000\n```\n```waitress server:\nflask run # 0.0.0.0:8000\n```\n\n*Production via Docker:*\n```shell\n## build production docker image:\ndocker build -t \u003csrv\u003e .\n\n## serve production docker image locally:\ndocker run -d -p 8000:8000 \u003csrv\u003e:latest\n\n## stop local image:\n# docker ps\n# docker stop \n\n## push image to a container registery: \n# docker push \u003csrv\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesssullivan%2Ffastphotoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesssullivan%2Ffastphotoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesssullivan%2Ffastphotoapi/lists"}