django-resized icon indicating copy to clipboard operation
django-resized copied to clipboard

Image width and height are not what i have entered!

Open SohaibShafiq1 opened this issue 3 years ago • 1 comments

i want image to be 48/48 but the size sometimes 40/50,60/40 like.

SohaibShafiq1 avatar May 22 '21 11:05 SohaibShafiq1

The 'size' option is not the actual size of the final image but the max size. The image will be less than or equal to this size.

Also, internally the Image.thumbnail() function of the Pillow library is used which approximates the size to preserve aspect of image.

The docs should make it more clear or 'size' should be renamed to 'max size'.

Nitin-Yadav-1 avatar Jul 15 '24 11:07 Nitin-Yadav-1