Skip to main content

A Python web server that uses PIL to dynamically scale, crop, transform and serve images from S3 or the local filesystem

Project description

Meet Thumpy

Thumpy is a Python web service that crops and scales images. It doesn’t store anything. It’s meant to be used as an origin server sitting behind a CDN such as Amazon CloudFront.

CONFIGURATION

Settings are stored in the settings.yaml file. They should include the name and access keys to your S3 bucket.

INTERFACE

Thumpy serves images using the same paths as their storage location on S3. Conversion parameters are specified in the query string, using an interface inspired by TimThumb. examples:

Scale the width to 200px, and the height proportionally:

http://mythumpyserver.somewhere/castle.jpg?w=200

Scale the height to 150px, and the width propotionally:

http://mythumpyserver.somewhere/castle.jpg?w=200

Specify both height and width:

http://mythumpyserver.somewhere/castle.jpg?w=200&h=150

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thumpy-0.0.2.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file thumpy-0.0.2.tar.gz.

File metadata

  • Download URL: thumpy-0.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for thumpy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 23bfffc4e9dbf4a990965821f4338ff28d40e4ae2e37ff6c81cab728824d69b0
MD5 1bb7ba3736faca852e8e3fe8a41a8ba8
BLAKE2b-256 e134f2965ded7419077577dc8b8c4d993ea864ad97b91d404593dae4c09c8981

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page