I had the same issue, the problem is in drawInlineImage function, if no width and height are given the default pdf resolution of 75 dpi is taken (1 pixel per pt).
I patched the drawInlineImage call in hp-scan (2 times) from:
c.drawInlineImage(image, (tlx/0.3528), ((bry_max/0.3528)-(bry/0.3528)),
#c.drawInlineImage(image, 0, bry/0.3528, width=None,height=None)
to: c.drawInlineImage(image, (tlx/0.3528), ((bry_max/0.3528)-(bry/0.3528)), width=((brx-tlx)/0.3528),height=((bry-tly)/0.3528))
And it now seems to be working (better).
I had the same issue, the problem is in drawInlineImage function, if no width and height are given the default pdf resolution of 75 dpi is taken (1 pixel per pt).
I patched the drawInlineImage call in hp-scan (2 times) from:
to:
c. drawInlineImage (image, (tlx/0.3528), ((bry_max/ 0.3528) -(bry/0. 3528)),
width= ((brx-tlx) /0.3528) ,height= ((bry-tly) /0.3528) )
And it now seems to be working (better).