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 "fill" width=200 height=400 %}" />
{% adjust_bulk my_queryset "method.image" "fill" width=200 height=400 as adjusted_list %}
{% for my_model, image in adjusted_list %}
<img src="{{ image }}" />
{% endfor %}
:code: http://github.com/littleweaver/django-daguerre
:docs: http://readthedocs.org/docs/django-daguerre/
:build status: |build-image|
.. |build-image| image:: https://secure.travis-ci.org/littleweaver/django-daguerre.png?branch=master
:target: http://travis-ci.org/littleweaver/django-daguerre/branches
Requirements
------------
* Python 2.6+, 3.3+
* Pillow 2.3.0+
* Django 1.6+
* Six 1.3.0+
Daguerre *may* work with earlier versions of these packages, but it is untested.
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/littleweaver/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 "fill" width=200 height=400 %}" />
{% adjust_bulk my_queryset "method.image" "fill" width=200 height=400 as adjusted_list %}
{% for my_model, image in adjusted_list %}
<img src="{{ image }}" />
{% endfor %}
:code: http://github.com/littleweaver/django-daguerre
:docs: http://readthedocs.org/docs/django-daguerre/
:build status: |build-image|
.. |build-image| image:: https://secure.travis-ci.org/littleweaver/django-daguerre.png?branch=master
:target: http://travis-ci.org/littleweaver/django-daguerre/branches
Requirements
------------
* Python 2.6+, 3.3+
* Pillow 2.3.0+
* Django 1.6+
* Six 1.3.0+
Daguerre *may* work with earlier versions of these packages, but it is untested.
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/littleweaver/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-2.0.1.tar.gz
(576.4 kB
view details)
File details
Details for the file django-daguerre-2.0.1.tar.gz
.
File metadata
- Download URL: django-daguerre-2.0.1.tar.gz
- Upload date:
- Size: 576.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327321804590316eac006165fd8dd673f532243764cc5d50b62be66ccccb9e7b |
|
MD5 | 2dcb7185d6067526fc526626b7066646 |
|
BLAKE2b-256 | f479604d1225b60651ca93f99d94f45e458f34006450f20f9a7b5c053937fa48 |