On-the-fly image manipulation for Django.
Project description
README
======
**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**.
.. code-block:: html+django
{% load daguerre %}
<img src="{% adjust my_model.image width=200 height=400 %}" />
{% adjust_bulk my_queryset "method.image" width=200 height=400 as adjusted_list %}
{% for my_model, image in adjusted_list %}
<img src="{{ image }}" />
{% endfor %}
:code: http://github.com/oberlin/django-daguerre
:docs: http://readthedocs.org/docs/django-daguerre/
:build status: |build-image|
.. |build-image| image:: https://secure.travis-ci.org/oberlin/django-daguerre.png?branch=master
:target: http://travis-ci.org/oberlin/django-daguerre/branches
Requirements
------------
* Python 2.6+
* 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
You can clone the repository yourself at https://github.com/oberlin/django-daguerre.
.. highlight:: python
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')),
...
)
Testing
-------
We recommend running `tox`_ from the repository's root directory,
but you can also run ``test_project/manage.py test daguerre``.
.. _tox: http://tox.readthedocs.org/en/latest/
======
**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**.
.. code-block:: html+django
{% load daguerre %}
<img src="{% adjust my_model.image width=200 height=400 %}" />
{% adjust_bulk my_queryset "method.image" width=200 height=400 as adjusted_list %}
{% for my_model, image in adjusted_list %}
<img src="{{ image }}" />
{% endfor %}
:code: http://github.com/oberlin/django-daguerre
:docs: http://readthedocs.org/docs/django-daguerre/
:build status: |build-image|
.. |build-image| image:: https://secure.travis-ci.org/oberlin/django-daguerre.png?branch=master
:target: http://travis-ci.org/oberlin/django-daguerre/branches
Requirements
------------
* Python 2.6+
* 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
You can clone the repository yourself at https://github.com/oberlin/django-daguerre.
.. highlight:: python
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')),
...
)
Testing
-------
We recommend running `tox`_ from the repository's root directory,
but you can also run ``test_project/manage.py test daguerre``.
.. _tox: http://tox.readthedocs.org/en/latest/
Project details
Release history Release notifications | RSS feed
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-1.0.0.tar.gz
(572.1 kB
view details)
File details
Details for the file django-daguerre-1.0.0.tar.gz
.
File metadata
- Download URL: django-daguerre-1.0.0.tar.gz
- Upload date:
- Size: 572.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f57745057b6b88291869dc0c9ce3ad67d3011af76e491080194df314f9749e83 |
|
MD5 | 0beed6eaeea8af719db4a618f9295fef |
|
BLAKE2b-256 | 9a411cf88f41186a12926f70616755aa5195d94c11671b5d0b8dee7b8fbd99cb |