summaryrefslogtreecommitdiff
path: root/source/fitz/load-tiff.c
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2013-07-21 23:06:57 +0200
committerRobin Watts <robin.watts@artifex.com>2013-08-28 13:35:54 +0100
commit4dc6cbedb4ef789c8c8ebd4c83095d0198050350 (patch)
tree4333bbdebb98b4c1a725f9404a0f3112a94256b2 /source/fitz/load-tiff.c
parent1c431eb5477388dbcf94b24a382efc1fb63b639a (diff)
downloadmupdf-4dc6cbedb4ef789c8c8ebd4c83095d0198050350.tar.xz
better JPEG image resolution detection (for XPS)
XPS extracts the resolution of a JPEG image from the image data. The current code however only reads the density values provided by JFIF metadata, while the XPS specification also allows for resolution to be in either EXIF metadata or Photoshop's APP13 chunk. This patch adds code for reading both kinds of metadata in order to get more consistent behavior with Microsoft's XPS Viewer. Documents for reproducing this issue: 2093*.xps, 2249*.xps, 2252*.xps, 2268*.xps and "jpeg exif resolution.xps". Another detail: The default resolution for JPEG images in XPS documents is 96 DPI and not 72 DPI.
Diffstat (limited to 'source/fitz/load-tiff.c')
0 files changed, 0 insertions, 0 deletions