Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonw/resize-proxy
A drop-dead simple image resizing proxy for Google App Engine
https://github.com/simonw/resize-proxy
Last synced: 26 days ago
JSON representation
A drop-dead simple image resizing proxy for Google App Engine
- Host: GitHub
- URL: https://github.com/simonw/resize-proxy
- Owner: simonw
- License: bsd-2-clause
- Created: 2010-07-22T20:50:31.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-08-09T11:42:31.000Z (over 14 years ago)
- Last Synced: 2024-10-07T11:54:26.866Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 279 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
resize-proxy
============A drop-dead simple image resizing proxy for Google App Engine. Configure it
with a list of ALLOWED_URL_WIDTHS regular expressions and sizes (at the top
of main.py) and then construct URLs to images that look like this:http://resize-proxy.appspot.com/s/100/?url=http://www1.sciencemuseum.org.uk/hommedia.ashx?id=11742%26size=Small
Where http://www1.sciencemuseum.org.uk/hommedia.ashx?id=11742&size=Small is
the URL to the original image, and /s/100/ means "crop to a square of width
and height 100px". /w/100/ would resize without cropping to make the width
100px.Both fetched images and the resized/cropped versions are cached in memcached
for between 25 and 35 days (a random cache length is used to avoid everything
in the cache expiring at once).