Hi,

The Mezzanine tag thumbnail checks if the thumbnail exists and creates it 
only if it doesn't exist. Is there a good reason why it doesn't check 
whether the original image is newer than an existing thumbnail file? It can 
be done like this in mezzanine_tags.py, line 330 onward:

try:
>     thumb_exists = os.path.exists(thumb_path)
>     if thumb_exists and default_storage.exists(image_url):
>         thumb_exists = default_storage.modified_time(image_url) < 
> datetime.fromtimestamp(os.path.getmtime(thumb_path))
> except UnicodeEncodeError:
>
>  
thumb_exists is set to False if the image file is newer than the thumbnail

Regards, Jørgen Frøjk

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to