Skip to main content

Make web page screen shots using the url2png service.

Project description

  1. Install it with pip:

    pip install django-url2png
  2. Configure settings: API_KEY, SECRET_KEY

  3. Optionally set optional defaults for the filter, especially THUMBNAIL_MAX_WIDTH

  4. 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.2.tar.gz (538.2 kB view details)

Uploaded Source

File details

Details for the file django-url2png-0.2.tar.gz.

File metadata

File hashes

Hashes for django-url2png-0.2.tar.gz
Algorithm Hash digest
SHA256 10e7bf6f2ecf6399dd246369a17c601f3c2e4381e4eb582cb20d02875c5cec44
MD5 1638d39fa883c334475bb2db0f7d3a27
BLAKE2b-256 d44525e1206288890ea9e2b4300229381f6cece736b26ab67cbc55687c1a92f2

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