Skip to main content

A website screenshot and thumbnailing app for Django.

Project description

A website snapshot and thumbnailing app for Django. Uses firefox, selenium, and sorl-thumbnail.

Getting started

Requirements

django-thummer requires Firefox and Xvfb. On Debian/Ubuntu systems these can be installed using:

sudo apt-get install firefox xvfb

Installation

django-thummer can be installed to your Python environment using pip:

pip install django-thummer

Then add thummer to INSTALLED_APPS in your Django settings file, and sync the database. If you’re using South, then migrations are provided.

Basic usage

from thummer.utils import get_thumbnail

thumbnail = get_thumbnail('http://www.example.com/', '400x400')

Credits

Special thanks to the sorl-thumbnail and selenium projects. Thanks also to the blog posts which originally got me thinking about the project:

To-do

  • Snapshot error handling

  • Documentation

  • Template tag

  • Celery tasks

  • Placeholder image

  • Management commands

  • Tests

  • Logging

  • Cache redirect response?

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

django-thummer-2.0.0.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file django-thummer-2.0.0.tar.gz.

File metadata

File hashes

Hashes for django-thummer-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a727100b6513cf4055d6c47da688aab3fb7f4c3ab6c6416a1537e1b43072648c
MD5 d5e6d63cdfe1181173967d71307c3d46
BLAKE2b-256 3462fe2129cfa023a7de09f51165fc869d2146557f66548dac3430a9f984aa78

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