Hi there, I hope you are doing well.
If you want to adjust image rendering based on user-uploaded dimensions, detect the image’s aspect ratio by checking its width and height. Use Zoom if the aspect ratio is close to 2:3 to fill the frame or Rescale for wider images to keep more of the image visible. This ensures each image is displayed in the most visually appealing way.
Thank You,
Mike Taku.
1 Like