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

alias namer not working #543

Closed Takiro closed 4 years ago

Takiro commented 4 years ago

The alias namer is not working as expected. The alias is always missing. I found the issue in the namer module. the alias function checks the thumbnail_options dict for a key named ALIAS, however thumbnail_options does never contain the alias name.

def alias(thumbnailer, thumbnail_options, source_filename,
        thumbnail_extension, **kwargs):
    return '.'.join([source_filename, thumbnail_options.get('ALIAS', ''), thumbnail_extension])
rbbonfim commented 4 years ago

@Takiro did you find the problem?

Takiro commented 4 years ago

Yes, I just opened a pull request with a fix #544