-
Is there a way I can auto calculate the height and width to fit images that are longer and shorter, avoiding small images from getting stretched out Here is the repository https://github.com/7ory/ImageCompressionAPI |
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
Feb 15, 2022
Replies: 1 comment 2 replies
-
The issue is that you are setting p.s. You might also want to take a look at the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
7ory
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue is that you are setting
IgnoreAspectRatio
totrue
. When you set the size to 480x2460 the image will be fit into the specified space.p.s. You might also want to take a look at the
ImageOptimizer
that can be used to reduce the size of your jpeg file.