You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert an HTML file with a linked image with a width of 600 pixels (do
not set width anywhere)
What is the expected output? What do you see instead?
I expect to see a 2-inch-wide image. Instead, it's tiny.
What version of the product are you using? On what operating system?
0.6.0-beta1, Linux
Please provide any additional information below.
The issue is in image_frame_reflower.cls.php, lines 104 and 122. It
applies the DPI conversion any time it sees a non-percentage dimension.
However, in the previous call to get_min_max_width, at lines 138 and 139 it
sets the dimensions to the DPI-converted values, measured in pt. The fix
is to check on lines 104 and 122 to see if the value is already in pt, and
if so do not re-convert:
Original author: dani.chu (May 11, 2010 20:35:09)
What steps will reproduce the problem?
not set width anywhere)
What is the expected output? What do you see instead?
I expect to see a 2-inch-wide image. Instead, it's tiny.
What version of the product are you using? On what operating system?
0.6.0-beta1, Linux
Please provide any additional information below.
The issue is in image_frame_reflower.cls.php, lines 104 and 122. It
applies the DPI conversion any time it sees a non-percentage dimension.
However, in the previous call to get_min_max_width, at lines 138 and 139 it
sets the dimensions to the DPI-converted values, measured in pt. The fix
is to check on lines 104 and 122 to see if the value is already in pt, and
if so do not re-convert:
104: } elseif (false === mb_strpos($width, 'pt')) {
122: } elseif (false === mb_strpos($height, 'pt')) {
Original issue: http://code.google.com/p/dompdf/issues/detail?id=150
The text was updated successfully, but these errors were encountered: