easy-thumbnails icon indicating copy to clipboard operation
easy-thumbnails copied to clipboard

thumbnail dimensions can be incorrectly calculated

Open jerzyk opened this issue 5 years ago • 0 comments

when trying to generate a thumbnail for the image with strange dimensions (e.g. 600x1) existing calculation can calculate 0 (zero) as one of the dimensions - thus generating exception while creating thumbnail (width and height must be > 0)

imho best option will be to set a 1px as a minimum thumbnail size (processors.py: 189-192 and 204-206):

jerzyk avatar Aug 26 '20 10:08 jerzyk