upscaling image to minimum dimensions
I would like to proportionally scale up an image if the image size falls below size requirements.
so if the min requirements are 1024x1024,
so, if the height < 1024, but the width > 1024, the image should be scaled up proportionally so that the height is 1024, and the width is greater than original height.
the same goes for if the width < 1024 and the height is > 1024, the width should be scaled up to 1024, and the height should be scaled up proportionally
-
Hi,
Sorry for the very late reply, we have noticed that this request was left unattended. I guess this is not relevant anymore but for future reference -
For cases like this we have conditional transformations :)
Cloudinary supports in transforming the image (e.g., resize) only if a specified condition is met.
Good luck!
0
Post is closed for comments.
Comments
1 comment