Skip to content

Instantly share code, notes, and snippets.

@relekang
Last active August 29, 2015 14:17
Show Gist options
  • Save relekang/1544815ce1370a0be2b4 to your computer and use it in GitHub Desktop.
Save relekang/1544815ce1370a0be2b4 to your computer and use it in GitHub Desktop.

python-thumbnails

What is python-thumbnails

It is a python package for creating thumbnails. It is not tied to a specific web framework, but is designed to work with most of them and has planned integrations with Django and Flask.

Example site (Repo)
Documentation

Roadmap

When will we see a pre-release on pypi

As fast as we can get it out. The hope is before 1st of April.

Features

  • get_thumbnail should create image and save it
  • config loading
  • Scale
  • Crop
    • Crop for aliases, center, top, right, bottom, left.
    • Crop for custom center-point
  • Engines
    • Extendible thumbnail engine
    • Pillow
    • graphicsmagick
    • pgmagick
    • WandEngine
  • Caching
  • Extendible caching backend
  • Simple caching
  • Caching backend for memcache
  • Caching backend for redis
  • Storage
  • Extendible storage backend
  • File system storage backend
  • Django storage backend
  • S3 ?
  • Alternative resolutions
  • Django-integration
    • Load django settings
    • Add path and url defaults for django
    • Integrate with django cache
    • Integrate with django storage
    • Templatetag that calls get_thumbnail
    • Template filter that replaces all images with thumbnails
  • Flask-integration
    • Load Flask settings
    • Add path and url defaults for Flask

Meta

  • Documentation of everything
  • Tests of everything
  • Contributions guidelines
@relekang
Copy link
Author

@mattbriancon easy-thumbnails depends on django and only supports pillow

@relekang
Copy link
Author

@martinmaillard: Thanks for the input :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment