jpegexiforient does not reliably detect EXIF orientation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libjpeg9 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
It seems this program isn't operative in Ubuntu 18.04, unless I've overlooked something.
$ md5sum parrots.jpg
1b624b6d36f1c47
$ jpegexiforient -2 parrots.jpg
$ echo $?
0
$ md5sum parrots.jpg
1b624b6d36f1c47
$ jpegexiforient -9 parrots.jpg
jpegexiforient reads or writes the Exif Orientation Tag in a JPEG Exif file.
Usage: jpegexiforient [switches] jpegfile
Switches:
--help display this help and exit
--version output version information and exit
-n Do not output the trailing newline
-1 .. -8 Set orientation value 1 .. 8
$ echo $?
1
$ jpegexiforient -3 parrots.jpg
$ echo $?
0
$ md5sum parrots.jpg
1b624b6d36f1c47
Visually confirmed that the image does not display any differently after the failed EXIF changes (which would have been an interesting result considering the hash of the file stayed constant).
I downloaded a sample JPEG file from the following location ("PARROTS") https:/
I just converted the above original question into a bug report; I was not the original author of the question.
I'm seeing similar behavior, but only with some images. I have an image where using ExifTool produces an EXIF Orientation of 3, but jpegexiforient returns nothing:
> identify -format '%[EXIF: Orientation] ' 00301827_0.jpg && echo && echo
3
> jpegexiforient 00301827_0.jpg
(No output)
Attached is exiftool's EXIF metadata dump in HTML format. I am guessing that perhaps the EXIF tags are in a different place in the file than `jpegexiforient` is used to?