To keep orientation number after converting from video file to image file.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
PleskQuestion
Posts: 26
Joined: 2017-11-11T19:57:59-07:00
Authentication code: 1152

To keep orientation number after converting from video file to image file.

Post by PleskQuestion »

Hello

I'm using a ffmpeg command to convert from a video file to a image file, but after I converted it, it deleted the orientation number of the image. Is there any way to keep the orientation number after converting from a video to a image by the ffmpeg command?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: To keep orientation number after converting from video file to image file.

Post by fmw42 »

If you are using FFMPEG and not ImageMagick, then you should consult with a FFMPEG forum. If you are using ImageMagick, you could try adding -auto-orient to your command line. That will orient your images properly, but then the orientation may be lost or reset to the normal orientation. I am not sure which without doing testing, but my guess is the latter.

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
PleskQuestion
Posts: 26
Joined: 2017-11-11T19:57:59-07:00
Authentication code: 1152

Re: To keep orientation number after converting from video file to image file.

Post by PleskQuestion »

Thanks, fmw42,
The update to ffmpeg 3.4 from ffmpeg 2.2 has made the image rotated all right automatically. Thanks for your time and support.
Post Reply