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
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
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.
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.
What's the status here? This bug is 1 1/2 year old...
fixed in jpeg-6b-r6