Skip to main content

Extension to easy_thumbnails for Django providing thumbnails from static files

Project description

static-thumbnails

Django application providing template tags to create thumbnails from static files using easy-thumbnails

Installation

pip install Pillow easy-thumbnails static-thumbnails

Usage

Add static-thumbnails to your settings.py:

INSTALLED_APPS = [
    # ... regular django apps go here
    'easy_thumbnails',
    'static_thumbnails',
]

And then use it as the regular thumbnail tag from easy-thumbnails, but pointing ot to a file in your STATIC_ROOT:

{% static_thumbnail 'some/static/file.png' 150x100 quality=100 HIGH_RESOLUTION as logo %}
<img src="{{ logo.highres_url }}" width="{{ logo.width }}" height="{{ logo.height }}" />

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

static-thumbnails-0.9.tar.gz (5.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

static_thumbnails-0.9-py3.7.egg (11.9 kB view details)

Uploaded Egg

static_thumbnails-0.9-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file static-thumbnails-0.9.tar.gz.

File metadata

  • Download URL: static-thumbnails-0.9.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for static-thumbnails-0.9.tar.gz
Algorithm Hash digest
SHA256 5d84f254899658879f97e5121ac79b1cf25bf4fe7d8f6c330eda1f96c1367584
MD5 e9ea1b59198ffe8447f604f5e70eeecc
BLAKE2b-256 7fb2f348d6833f12c6411403a76ff0b30763d3a65ada371b70de5ba6ef79e2d0

See more details on using hashes here.

File details

Details for the file static_thumbnails-0.9-py3.7.egg.

File metadata

  • Download URL: static_thumbnails-0.9-py3.7.egg
  • Upload date:
  • Size: 11.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for static_thumbnails-0.9-py3.7.egg
Algorithm Hash digest
SHA256 e6112b02bd2cd37db00a5ac89ee0c091011bcc8d9ba641cd625cbbb4caa5a0e0
MD5 f72ae15a606cb401396adcd08065a626
BLAKE2b-256 3e66c1b61321db8cb31312e615e16203cbc1dac54939b2479a9bd0934edbe219

See more details on using hashes here.

File details

Details for the file static_thumbnails-0.9-py3-none-any.whl.

File metadata

  • Download URL: static_thumbnails-0.9-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for static_thumbnails-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2e099d97165a8b0b01b4f8497c87b2228703d6696493bdb211a4b236ba4c7de1
MD5 e1a7bdf4f8d49b664ca85d844d3a5c12
BLAKE2b-256 72dae9b9d45243686bb8408dfa56d6b95bca4505418d863f3ed98e95b48404b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page