summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/src/jpegimage.c
diff options
context:
space:
mode:
authorJonathan Kew <jfkthame@googlemail.com>2007-11-22 16:48:06 +0000
committerJonathan Kew <jfkthame@googlemail.com>2007-11-22 16:48:06 +0000
commita8f41aa584925cfa8c85f6385c1aadb31165f2da (patch)
tree337ab7a546ff6c56589df0bf0a64d091297b3c65 /Build/source/texk/xdvipdfmx/src/jpegimage.c
parent7d52fb22c1080250b0d0c0aa1d2064b565ca2c8d (diff)
corrections for resolution handling (SIL svn rev.102)
git-svn-id: svn://tug.org/texlive/trunk@5548 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/jpegimage.c')
-rw-r--r--Build/source/texk/xdvipdfmx/src/jpegimage.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/jpegimage.c b/Build/source/texk/xdvipdfmx/src/jpegimage.c
index 45dc976f78c..a6605cc0c94 100644
--- a/Build/source/texk/xdvipdfmx/src/jpegimage.c
+++ b/Build/source/texk/xdvipdfmx/src/jpegimage.c
@@ -360,9 +360,10 @@ jpeg_include_image (pdf_ximage *ximage, FILE *fp)
}
}
}
-
- info.xdpi = j_info.xdpi;
- info.ydpi = j_info.ydpi;
+ else { /* resolution data from EXIF is handled here */
+ info.xdensity = 72.0 / j_info.xdpi;
+ info.ydensity = 72.0 / j_info.ydpi;
+ }
pdf_ximage_set_image(ximage, &info, stream);
JPEG_info_clear(&j_info);
@@ -650,7 +651,6 @@ read_APP1_Exif (struct JPEG_info *j_info, FILE *fp, unsigned short length)
}
}
-
j_info->xdpi = xres * res_unit;
j_info->ydpi = yres * res_unit;