Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Make web page screen shots using the url2png service.
JavaScript Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc_src
docs
example
url2png
.gitignore
CHANGELOG
LICENSE
MANIFEST.in
README.rst
requirements.txt
setup.py

README.rst

Getting Started

  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 %}"/>
    
Something went wrong with that request. Please try again.