Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38503 - jpegtran, included in the jpeg-6b ebuilds, kills EXIF data
Summary: jpegtran, included in the jpeg-6b ebuilds, kills EXIF data
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-17 05:33 UTC by ajs
Modified: 2005-09-06 15:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Revised ebuild for jpeg-6b (jpeg-6b-r4.ebuild,1.38 KB, text/plain)
2004-01-17 05:50 UTC, ajs
Details
Patch for jpeg-6b jpegtran utility (jpeg-6b-exif.patch,6.26 KB, patch)
2004-01-17 05:52 UTC, ajs
Details | Diff
Code for jpegexiforient utility for querying and setting EXIF orientation tags (jpegexiforient.c,7.71 KB, text/plain)
2004-01-17 05:53 UTC, ajs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajs 2004-01-17 05:33:48 UTC
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 ajs 2004-01-17 05:50:36 UTC
Created attachment 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 ajs 2004-01-17 05:52:28 UTC
Created attachment 23968 [details, diff]
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 ajs 2004-01-17 05:53:48 UTC
Created attachment 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 Jakub Moc (RETIRED) gentoo-dev 2005-07-27 15:57:43 UTC
What's the status here? This bug is 1 1/2 year old...
Comment 5 SpanKY gentoo-dev 2005-09-06 15:37:35 UTC
fixed in jpeg-6b-r6