Any way to resize image under certain size (e.g. 1MB)? #2814
Unanswered
Zhao-Michael
asked this question in
Q&A
Replies: 1 comment 2 replies
-
In ImageSharp, resizing an image based solely on a target file size (e.g., under 1MB) is not straightforward due to several variables that affect the final file size beyond just the image dimensions. Factors such as:
To achieve a target file size like 1MB, you would need to iteratively resize and adjust the compression quality, and even then, it's not guaranteed to be exact due to the image's content and format. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
thanks in advance~
Beta Was this translation helpful? Give feedback.
All reactions