Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image width and height are not what i have entered! #37

Open
SohaibShafiq1 opened this issue May 22, 2021 · 1 comment
Open

Image width and height are not what i have entered! #37

SohaibShafiq1 opened this issue May 22, 2021 · 1 comment

Comments

@SohaibShafiq1
Copy link

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

@Nitin-Yadav-1
Copy link
Contributor

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants