4 ms·
To fix these: convert -auto-orient in.jpg out.jpg
by cbr 8y ago
To fix these:
convert -auto-orient in.jpg out.jpg
- maaark 8y agoA note for clueless windows users: convert /? Converts a FAT volume to NTFS. CONVERT volume /FS:NTFS [/V] [/CvtArea:filename] [/NoSecurity] [/X] volume Specifies the drive letter (followed by a colon), mount point, or volume name. /FS:NTFS Specifies that the volume will be converted to NTFS. /V Specifies that Convert will be run in verbose mode. /CvtArea:filename Specifies a contiguous file in the root directory that will be the place holder for NTFS system files. /NoSecurity Specifies that the security settings on the converted files and directories allow access by all users. /X Forces the volume to dismount first if necessary. All open handles to the volume will not be valid. You probably can't do any damage attempting to use it to convert images, but there might be a way to screw up attempting to convert an image so badly you destroy your filesystem.
- praveenscience 8y agoExactly, this command is for converting a file system and not an image or a single file.
- cbr 8y agoIt's unfortunate that ImageMagick decided to call their primary command "convert".
- poizan42 8y agoDon't do that, it will degrade the image quality. Use exiftran instead as it will do lossless rotation.
- praveenscience 8y agoQuick questions regarding this: 1. Will this work without having to install new software on Windows, Mac, Linux? 2. Will this degrade image quality?
- cbr 8y ago1. This uses the Image Magick command "convert" so it will work on any system that has it installed. I've only used it on Mac and Linux. 2. It isn't lossless, no. I think jpegtran can do this, but you'll need to first read the correct orientation out of the EXIF data and then give the right arguments to jpegtran. Since the loss in quality is tiny, I just use -auto-orient.
- praveenscience 8y agoAh thanks. :)