{% load shrinkthewebtags %} django-stw Django + Shrink The Web Examples

shrinkthewebimage examples

micro

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "mcr" "micro" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "mcr" "micro" %}

tiny

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "tny" "tiny" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "tny" "tiny" %}

very small

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "vsm" "very small" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "vsm" "very small" %}

small

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "sm" "small" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "sm" "small" %}

large

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "lg" "large" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "lg" "large" %}

extra large

{% templatetag openblock %} shrinkthewebimage "http://djangoproject.com/" "xlg" "extra large" {% templatetag closeblock %}

{% shrinkthewebimage "http://djangoproject.com/" "xlg" "extra large" %}

stwimage simple api examples

micro

{% templatetag openblock %} stwimage "http://djangoproject.com/" "micro" stwsize=mcr {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "micro" stwsize=mcr %}

tiny

{% templatetag openblock %} stwimage "http://djangoproject.com/" "tiny" stwsize=tny {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "tiny" stwsize=tny %}

very small

{% templatetag openblock %} stwimage "http://djangoproject.com/" "very small" stwsize=vsm {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "very small" stwsize=vsm %}

small

{% templatetag openblock %} stwimage "http://djangoproject.com/" "small" stwsize=sm {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "small" stwsize=sm %}

large

{% templatetag openblock %} stwimage "http://djangoproject.com/" "large" stwsize=lg {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "large" stwsize=lg %}

extra large

{% templatetag openblock %} stwimage "http://djangoproject.com/" "extra large" stwsize=xlg {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "extra large" stwsize=xlg %}

stwimage PRO api examples

Requires 'stwu' in settings.SHRINK_THE_WEB and purchase of appropriate options from STW

inside page

{% templatetag openblock %} stwimage "http://djangoproject.com/community/" "inside page" stwsize=lg stwinside=1 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/community/" "inside page" stwsize=lg stwinside=1 %}

full length

{% templatetag openblock %} stwimage "http://djangoproject.com/" "full length" stwfull=1 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "full length" stwfull=1 %}

full length 150px wide

{% templatetag openblock %} stwimage "http://djangoproject.com/" "full length 150 wide" stwfull=1 stwxmax=150 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "full length 150 wide" stwfull=1 stwxmax=150 %}

full length 150px wide 50px tall

{% templatetag openblock %} stwimage "http://djangoproject.com/" "full length 150x50" stwfull=1 stwxmax=150 stwymax=50 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "full length 150x50" stwfull=1 stwxmax=150 stwymax=50 %}

widescreen 200px wide image

{% templatetag openblock %} stwimage "http://djangoproject.com/" "widescreen" stwnrx=1440 stwnry=900 stwxmax=200 {% templatetag closeblock %}

{% stwimage "http://djangoproject.com/" "widescreen" stwnrx=1440 stwnry=900 stwxmax=200 %}