Use the auto-orient option of ImageMagick’s convert
to do this.
convert your-image.jpg -auto-orient output.jpg
Or use mogrify
to do it in place
mogrify -auto-orient your-image.jpg
More Related Contents:
- How do I add exif data to an image?
- Remove EXIF data from JPG using PHP
- Convert SVG image to PNG with PHP
- Resize animated GIF file without destroying animation
- Convert PDF to JPEG with PHP and ImageMagick
- writing exif data in php
- Verify ImageMagick installation
- Convert JPG/GIF image to PNG in PHP?
- PHP extract GPS EXIF data
- Crop or mask an image into a circle
- PHP read_exif_data and Adjust Orientation
- step-by-step instructions for installing IMAGEMAGICK on WAMP?
- Detect main colors in an image with PHP
- How to install Imagick/imagemagick PHP extension on windows 7
- How to use Imagick to merge and mask images?
- Installing ImageMagick extension with php/windows
- How to stop PHP iMagick auto-rotating images based on EXIF ‘orientation’ data
- Running ImageMagick on XAMPP 1.8.3 with Windows 7
- Query database then email posts from where user is subbed to
- Display multidimensional array in php
- Why am i unable to echo anything on the browser [duplicate]
- Convert php array to Javascript
- Mixing a PHP variable with a string literal
- How to get xdebug var_dump to show full object/array
- PHP Random Shuffle Array Maintaining Key => Value
- Resize images in PHP without using third-party libraries?
- Iterable objects and array type hinting?
- Laravel – Database, Table and Column Naming Conventions?
- Undefined index: file
- mysql_connect VS mysql_pconnect [closed]