diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-02-09 06:41:20 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-02-09 06:41:20 +0000 |
commit | 950ab167fc3a27a8f5e68eed1de620aac513ab53 (patch) | |
tree | b2404d08222e050c08bf209d3080f5947836559d /Build/source/texk/web2c/xetexdir/XeTeX_pic.c | |
parent | 45619b0a6390237f5ce0be9c27ccabf45e44b88d (diff) |
xetexdir/XeTeX_pic.c and xetexdir/image/jpegimage.c: Fix a bug to include jpeg images correctly (borrowed from dvipdfm-x).
git-svn-id: svn://tug.org/texlive/trunk@36241 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeX_pic.c')
-rw-r--r-- | Build/source/texk/web2c/xetexdir/XeTeX_pic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_pic.c b/Build/source/texk/web2c/xetexdir/XeTeX_pic.c index 92233654232..353b87831d9 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeX_pic.c +++ b/Build/source/texk/web2c/xetexdir/XeTeX_pic.c @@ -104,8 +104,16 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) struct JPEG_info info; err = JPEG_scan_file(&info, fp); if (err == 0) { +/* bounds->wd = (info.width * 72.27) / info.xdpi; bounds->ht = (info.height * 72.27) / info.ydpi; +*/ +/* + In the new jpegimage.c, info.width and info.height are correct + width and height in bp unit +*/ + bounds->wd = (info.width * 72.27) / 72.0; + bounds->ht = (info.height * 72.27) / 72.0; } goto done; } |