pts / pdfsizeopt

PDF file size optimizer
GNU General Public License v2.0
750 stars 65 forks source link

jbig2 failure #126

Closed lemzwerg closed 5 years ago

lemzwerg commented 5 years ago

[pdfsizeopt-jbig2 2589ca51629526374195d2e2816575bab598019c, self-compiled] [openSUSE Leap 15.1]

Calling jbig2 -p image.png on the attached image produces

libpng warning: Application built with libpng-1.2.50 but running with 1.6.34
Error in pixReadStreamPng: png_ptr not made
Error in pixReadStream: png: no pix returned
Error in pixRead: pix not read

image

zvezdochiot commented 5 years ago

@lemzwerg say> libpng warning: Application built with libpng-1.2.50 but running with 1.6.34

/usr/include/libpng12/png.h:

Use options:

pdfsizeopt --use-jbig2=NO
pts commented 5 years ago

Thank you for reporting this!

This can't be fixed on the pdfsizeopt side, because it's a bug in jbig2. Please report the bug there.

Please follow the Linux installation instructions on http://github.com/pts/pdfsizeopt to avoid this and similar errors.