Bug 38503 - jpegtran, included in the jpeg-6b ebuilds, kills EXIF data
Bug#: 38503 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: graphics@gentoo.org Reported By: ajs@pigpond.com
Component: Ebuilds
URL: 
Summary: jpegtran, included in the jpeg-6b ebuilds, kills EXIF data
Keywords:  
Status Whiteboard: 
Opened: 2004-01-17 05:33 0000
Description:   Opened: 2004-01-17 05:33 0000
The jpegtran utility is used to perform lossless transformations of JPEG files.
Many digital cameras now include EXIF data in the JPEG files they create.
Unfortunately the jpegtran utility does not preserve the location of the EXIF
data, which causes some applications (apparently) to fail.

This problem, and an appropriate fix, is described in further detail at
<http://sylvana.net/jpegcrop/exifpatch.html>.

I've modified the ebuild to apply that patch given at that page. In addition,
I've altered it to build the 'jpegexiforient' program also supplied at that
page. This allows for querying and setting the EXIF orientation tag, useful for
auto-rotating images captured from cameras which set this tag.

I'll attach the ebuild files to subsequent comments since the initial bugreport
form doesn't allow attachments.

Cheers,

 - Andrew

------- Comment #1 From Andrew Snare 2004-01-17 05:50:36 0000 -------
Created an attachment (id=23967) [details]
Revised ebuild for jpeg-6b

This is the revised ebuild for jpeg-6b. It applies a patch for jpegtran, and
also ensures the jpegexiforient utility is built.

 - Andrew

------- Comment #2 From Andrew Snare 2004-01-17 05:52:28 0000 -------
Created an attachment (id=23968) [details]
Patch for jpeg-6b jpegtran utility

This patch should be dropped into the files/ directory for the ebuild to ensure
it gets applied. It alters jpegtran such that if the input file has EXIF data,
the output file will have the EXIF data in the correct location within the
file.

------- Comment #3 From Andrew Snare 2004-01-17 05:53:48 0000 -------
Created an attachment (id=23969) [details]
Code for jpegexiforient utility for querying and setting EXIF orientation tags

This file should be dropped in the files/ directory for the ebuild. It will
then be copied into the source directory and compiled/installed as is
appropriate.

------- Comment #4 From Jakub Moc (RETIRED) 2005-07-27 15:57:43 0000 -------
What's the status here? This bug is 1 1/2 year old...

------- Comment #5 From SpanKY 2005-09-06 15:37:35 0000 -------
fixed in jpeg-6b-r6