• Joined on 2023-11-13
j3ff commented on issue josch/img2pdf#181 2023-11-19 15:51:37 +00:00
Incorrect page size with different resolutions in x and y directions

So for the cases of handling PNG files without resolution units defined, I guess you could trying querying aspect and set dpi when saving the image.

This was a good tip. Thanks. My code…

j3ff commented on issue josch/img2pdf#181 2023-11-17 14:43:10 +00:00
Incorrect page size with different resolutions in x and y directions

This is all part of a python rewrite of gscan2pdf. I'm using img2pdf to create the PDFs before using OCRmyPDF to add the text layer.

I'm manipulating the images internally with PIL, and am…

j3ff commented on issue josch/img2pdf#181 2023-11-17 14:05:27 +00:00
Incorrect page size with different resolutions in x and y directions

Thanks for the workaround.

I confirm that it also produces the expected result on ImageMagick 6.9.11.

It would be good to have a better fix, however, rather than running problematic images…

j3ff opened issue josch/img2pdf#181 2023-11-13 15:44:52 +00:00
Incorrect page size with different resolutions in x and y directions