dompdf / php-svg-lib

SVG file parsing / rendering library
GNU Lesser General Public License v3.0
1.39k stars 77 forks source link

Support instrinsic dimensions for image elements #94

Open bsweeney opened 1 year ago

bsweeney commented 1 year ago

If an image element's width/height is set to auto the values should be based on the image's intrinsic width/height. instead, php-svg-lib attempts to use the keyword as-is which can cause string + numeric calculation errors. If the values are omitted entirely php-svg-lib does not attempt to specify a width/height for the image resulting in incorrect placement.

References: