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 ratio

ex1. 3200x1600 -> 1600x800 
ex2. 1000x1000 -> 800x800

What is the best way to achieve this using Imagemagick?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.