agl / jbig2enc

JBIG2 Encoder
Other
252 stars 86 forks source link

jbig2 ignores image resolution #8

Closed laur-zz closed 14 years ago

laur-zz commented 14 years ago

I am converting a 300 dpi series of TIFF images to jbig2 and pdf using jbig2 -s -p image*.tif and python pdf.py output > image-jbig2.pdf. The resultant pdf is at 72 dpi. I can't tell how to make jbig2enc read the image resolution from the tif file or how to feed it to jbig2 manually. Testing with the windows and linux binaries from rubypdf.

akryukov commented 14 years ago

I am wondering why this issue is closed, although the problem is still there. It should be relatively easy to fix it, but jbig2 has several places there xres/yres is supposed to be set, and so I am not sure where to patch the code.