The documentation of sorl thumbnail still refers to the get_thumbnail function, but this doesn’t exist in v.3.2.5. (cannot import name get_thumbnail)
For the life of me, I can’t find any reference to what this function was changed to, or how to generate a thumbnail in the python code of this version of sorl. Any advice?
In my particular case, I’ve used an ThumbnailField with
extra_thumbnailsdefined:The
imagefield will have a dict of the images defined by theextra_thumbnailsoption as an attribute named, surprisingly,extra_thumbails: