Skip to main content

On-the-fly image manipulation for Django.

Project description

Django Daguerre
===============

**Django Daguerre** makes it easy to adjust images on-the-fly without
slowing down your templates and without needing to generate everything
ahead of time with a cron job. You don't need to make any changes to
your models; it **Just Works**.

Requirements
------------

* Python 2.5+
* PIL 1.1.7 (Or [Pillow](http://pypi.python.org/pypi/Pillow))

Installation
------------

You can install the latest version of Daguerre using `pip`:

pip install django-daguerre

Setup
-----

Ensure that `'daguerre'` is in your project's `INSTALLED_APPS`:

INSTALLED_APPS = (
'daguerre',
...
)

Add the following or similar anywhere in your URLconf:

urlpatterns = patterns('',
url(r'^daguerre/', include('daguerre.urls')),
...
)

Usage
-----

The easiest way to use Daguerre is through the `{% adjust %}` template tag:

{% load daguerre %}
<img src="{% adjust my_model.image.name width=128 height=256 %}" />

For more on using Daguerre, [read the documentation](http://django-daguerre.readthedocs.org/).

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-daguerre-0.1.tar.gz (24.3 kB view details)

Uploaded Source

File details

Details for the file django-daguerre-0.1.tar.gz.

File metadata

File hashes

Hashes for django-daguerre-0.1.tar.gz
Algorithm Hash digest
SHA256 0c742357d2f56888a0b6962ff33991b6cb0dd7c5590a2f7300868a82d2b12117
MD5 deab5ef2a335ba6b389e174f848eff7a
BLAKE2b-256 5248a2a0fbbba5e159cda2c2ae01036d45e6b11d2adb87c2b92677c744448f52

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