top | item 17608728

(no title)

cbr | 7 years ago

To fix these:

    convert -auto-orient in.jpg out.jpg

discuss

order

maaark|7 years ago

A 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.

cbr|7 years ago

It's unfortunate that ImageMagick decided to call their primary command "convert".

praveenscience|7 years ago

Exactly, this command is for converting a file system and not an image or a single file.

praveenscience|7 years ago

Quick questions regarding this:

1. Will this work without having to install new software on Windows, Mac, Linux?

2. Will this degrade image quality?

cbr|7 years ago

1. 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.

poizan42|7 years ago

Don't do that, it will degrade the image quality. Use exiftran instead as it will do lossless rotation.