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 setdpi
when saving the image.
This was a good tip. Thanks. My code…
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…
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…
Incorrect page size with different resolutions in x and y directions