SmileyChris / easy-thumbnails

Easy thumbnails for Django
http://easy-thumbnails.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
1.37k stars 312 forks source link

is there a way to disable thumbnail generation? #526

Closed juancresc closed 3 years ago

juancresc commented 4 years ago

I'm using photos from a remote server by setting:

MEDIA_URL=http://mywebsite.com/media/

all works gine except when using thmbnails. Since it wants to get the image but it is not existent in the local env.

How can I disable thumbails generation in my local dev env without changing the templates?

What I want is when I write this:

article.image|thumbnail_url:'crop_300_150'

I want the thumbnail_url to default to the original image URL, just for dev purposes

fdemmer commented 1 month ago

is there a way to disable thumbnail generation?

ideally (describing my sort-of-feature-request), existing thumbnails would be served, but new ones should not be generated and instead the original image be used (or a configurable placeholder).