I am trying to resize any image by determining its aspect ratio and then resizing it to a height of 800px with the width depending on its aspect ratioex1. 3200x1600 -> 1600x800 ex2. 1000x1000 -> 800x800What is the best way to achieve this using Imagemagick?
Imagemagick resize image with heigh and aspect ratio constraint
imagemagick