ImageMagick PDF to JPEG - Auto rotate page from landscape to portrait

Viewed 838

I have software allowing in input any image with valid vertical A4 pages. My problem is that the PDF we are receiving can possibly have a random page turned into horizontal (landscape) mode.

I don't want to turn the content, only the page to make it feet in the software, like basically a 90 rotate left on all pages that are in landscape orientation.

This is the actual command I use: convert -scene 1 -density 200 .\TEST2.pdf page-%d.jpg

What I have:

What I get

What I would wish:

What I wish to have

-auto-orient does not solve my problem.

Command: convert -auto-orient -scene 1 -density 200 .\multiorientconvert.pdf page-%d.jpg

Result: enter image description here

Thank you.

0 Answers
Related