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

Setting to Only Generate Retina 2x Images? #546

Closed samdale67 closed 3 years ago

samdale67 commented 3 years ago

Hi all from Texas. Beautiful work on this project. Today I got easy-thumbnails up and running with no issues. However, I'm wondering if there is a way to have easy-thumbnails ONLY generate 2x/hi rez images, and reference those in a template.

Thanks,

Samuel Duncan | Head of the Research Library Amon Carter Museum of American Art 3501 Camp Bowie Blvd., Fort Worth, TX 76107 samd@cartermuseum.org | 817.989.5042 cartermuseum.org

samdale67 commented 3 years ago

Was able to use this solution, but maybe there's a more elegant solution in the works?

https://github.com/SmileyChris/easy-thumbnails/issues/542

jrief commented 3 years ago

Was able to use this solution, but maybe there's a more elegant solution in the works?

None of which I know.

Mogost commented 3 years ago

A more elegant way would be to write your own template tag. But I don't have an exact recipe for this. This is just the direction in which you can look.