I am working on a Django
project using the wonderful easy-thumbnails
plugin to generate thumbnails for images. I don't like how the thumbnails have the format of:
source.jpg.100x100_q80_crop_upscale.jpg
If my image is named source.jpg
, I'd much rather have something like:
source_thumb.jpg
.
Upon reading the plugin's docs (http://easy-thumbnails.readthedocs.org/en/latest/ref/settings/), I have discovered that there is a setting where I can set a custom THUMBNAIL_NAMER
, which is essentially a function that returns the desired thumbnail string.
My Question:
Where is the proper place to define this function in my project? I want to maintain a logical and clean project structure, and am unsure where to place this function.
Thank you so much for any help :)