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

请问,1 如何让生成的图片大小在200kb 以内。 2如何让图片等比列缩放 #533

Closed
18518278831 opened this issue Sep 4, 2021 · 1 comment
Labels

Comments

@18518278831
Copy link

请问,
1 如何让生成的图片大小在200kb 以内。
2如何让图片等比列缩放

@vstoykov
Copy link
Collaborator

vstoykov commented Apr 5, 2023

Automatic translation from Google Translate

Excuse me,

  1. How to make the generated picture size within 200kb?
  2. How to make the picture proportionally zoom?

My answers to these questions are:

  1. Currently the final image can be restricted only by visual size in pixels and not by actual file size. Some experiment can be made with different input images and different size of the thumbnail to measure the file size and eventually pick the right size for you.
  2. You can try the pilkit.processors.ResizeToFit

@vstoykov vstoykov closed this as completed Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants