Hi, Quoting Rogério Brito (2018-11-07 17:43:00) > First of all, thank you so very much for img2pdf. Once I found out about it, > I started using it extensively. > > Unfortunately, I found a bug when trying to convert a PNG file that I > acquired with Gnome's Simple Scan (I further optimized it with optipng and > advancecomp). > > I am attaching both the original PNG file as well as the produced PDF > file. The invocation is the following: > > img2pdf -o bar.pdf bar.png > > If there is any further information that is needed, please let me know.
thank you for your excellent bug report! I'm able to reproduce your problem with img2pdf 0.3.1. I also get lots of errors like: warning: unknown png predictor 170, treating as none warning: unknown png predictor 255, treating as none warning: ... repeated 73 times ... Fortunately, it seems that the problem is already fixed upstream. If you like, you could try out the img2pdf binary from here and check if your problem persists or not: https://gitlab.mister-muffin.de/josch/img2pdf/blob/master/src/img2pdf.py It works for me (tm). Can you confirm? Thanks! cheers, josch
signature.asc
Description: signature