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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-thummer-2.0.0.tar.gz
.
File metadata
- Download URL: django-thummer-2.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a727100b6513cf4055d6c47da688aab3fb7f4c3ab6c6416a1537e1b43072648c |
|
MD5 | d5e6d63cdfe1181173967d71307c3d46 |
|
BLAKE2b-256 | 3462fe2129cfa023a7de09f51165fc869d2146557f66548dac3430a9f984aa78 |