agl / jbig2enc

JBIG2 Encoder
Other
252 stars 86 forks source link

Patch to properly set dpi for generated pages #11

Closed akryukov closed 14 years ago

akryukov commented 14 years ago

Hi,

jbig2 currently doesn't preserve the original resolution of the processed images and always sets both xres and xres to zero. There is already is issue for this problem (#8), but it is closed without an apparent reason. Nevertheless the problem is serious, because dpi is necessary to properly calculate PDF media box. So I propose a patch which fixes the problem for multipage compression.

See http://www.thessalonica.org.ru/downloads/pagedpi.patch .

Ajaja commented 14 years ago

Thanks! I'm waiting long time for solution of this issue. Can someone build fixed version of jbig2 for windows?

agl commented 14 years ago

I've applied the given patch, thanks.

However, if you're using the example program for anything other than testing, then that's probably your problem!

Cheers

AGL