Make web page screen shots using the url2png service.
Project description
Install it with pip:
pip install django-url2png
Configure settings: API_KEY, SECRET_KEY
Optionally set optional defaults for the filter, especially THUMBNAIL_MAX_WIDTH
Use it in a template:
{% load url2png_tags %} <img src="{{ url|url2png:400 }}" width="400" height="{% get_height 400 %}"/>
This uses the configured THUMBNAIL_MAX_WIDTH, which is set to 300:
{% load url2png_tags %} <img src="{{ url|url2png }}" width="300" height="{% get_height %}"/>
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-url2png-0.1.tar.gz
(538.3 kB
view details)
File details
Details for the file django-url2png-0.1.tar.gz
.
File metadata
- Download URL: django-url2png-0.1.tar.gz
- Upload date:
- Size: 538.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2439d31871a55eeaf3cbd55219fba7550fbb0914ae3f3cc00f865641f592b7ac |
|
MD5 | 61c1a21ff021cf641b4b6391316a0936 |
|
BLAKE2b-256 | 624bc505711b1ae2f7f1c847e1891d52137e842fc7d088dd8b22b83e34d7e6ff |