# thumpy

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

## 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


# Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.