G
G
Gasoid2015-09-10 14:16:39
Django
Gasoid, 2015-09-10 14:16:39

Is there an equivalent of sorl-thumbnail with just a custom thumbnail name?

On the site you need to change the names of the thumbnail files
in sorl-thumbnail cache/dc/47/dc475b327c57da1291e1c0c4cf8345dc.jpg
you need cache/dc/47/image_file_100x100.jpg
is there an alternative, or a way to change the file name generation

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zigen, 2015-09-10
@Gasoid

Override _create_alternative_resolutions function https://github.com/mariocesar/sorl-thumbnail/blob/...

G
Gasoid, 2015-09-10
@Gasoid

I inherited from ThumbnailBackend and rewrote the _get_thumbnail_filename method and the tokey function
thanks!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question