djangosnippets.org: Latest snippets tagged with 'grayscale'https://djangosnippets.org/tags/grayscale/2012-09-16T17:21:41.700509-05:00django-thumbs black&white support
2012-09-16T17:21:41.700509-05:00rdugohttps://djangosnippets.org/snippets/2817/<p>Based on the original http://code.google.com/p/django-thumbs/</p>
<p>Added South support too.</p>
<p>Usage:</p>
<p><code>photo = ImageWithThumbsField(upload_to='images', sizes=((125,125,True),(300,200),)</code></p>
<pre><code>To retrieve image URL, exactly the same way as with ImageField:
`my_object.photo.url`
To retrieve thumbnails URL's just add the size to it:
`my_object.photo.url_125x125`
`my_object.photo.url_300x200`
To convert to greyscale set the third attribute of size to True
</code></pre>
Freely redistributable