Open Someonewow opened 1 year ago
Thank you for troubleshooting the problem so far and reporting it to us @Someonewow !
I am tempted to let @brucemiller get a first response in here, as these are his calculations, just wanted to send an early encouraging comment that it would indeed be great to get as precise as possible here.
Hello,
When I tried to use a program to convert [2210.09337], I found that I would calculate the wrong width and height when transforming the graph.
ar5iv html url: https://ar5iv.labs.arxiv.org/html/2210.09337 ar5iv log url: https://ar5iv.labs.arxiv.org/log/2210.09337
Problems seem to occur in the lib/LaTeXML/Util/Image.pm
line 332:
We pass in the DPI when we read the image file and think that the DPI will affect the width and height of the returned image object. But in some cases, the x-resolution value is set to DPI, but the width and height have no effect. Right?
So that in the subsequent trim transformation, the Amount to trim is multiplied by DPI, but the value of w or h is not affected by DPI, and the result ww or hh may be less than 0.
line 383:
Not sure if this is the cause of the problem.