[NTG-pdftex] [pdftex-Support Requests][4319] jbig2 resolution

pdftex-supportrequests at sarovar.org pdftex-supportrequests at sarovar.org
Mon Nov 8 15:14:42 CET 2010

Support Requests item #4319, was opened at 2010-11-06 13:18
Status: Open
Priority: 3
Submitted By: Boris Okun (okun)
Assigned to: Nobody (None)
Summary: jbig2 resolution 
Category: None
Group: None
Resolution: None

Initial Comment:
When including a jbig2enc generated file, the x,y-resolutions seem to be completely off.
I think the problem is with the lines 701-702 in writejbig2.c 

img_xres(img) = (int) (pip->xres * 0.0254 + 0.5);
img_yres(img) = (int) (pip->yres * 0.0254 + 0.5);

The file has resolution set to 600dpi, according to my hex browser, if I manually change it to 600/0.0254=2362, I get the expected output.

Or, perhaps, I and/or jbig2enc misunderstand the format of jbig2 files.




Comment By: Boris Okun (okun)
Date: 2010-11-08 08:14

I am attaching:
original: tetra.tiff
compressed: jbig2 -s tetra.tiff > tetra.jbig2
tex: tetra.tex

Thanks for looking into this,



Comment By: The Thanh Han (hanthethanh)
Date: 2010-11-08 06:26

can you please attach the image?



You can respond by visiting: 

More information about the ntg-pdftex mailing list