Properly report svg size from base image

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2026-05-22 08:27:06 -07:00
parent db5689adbc
commit 074f02d301

View File

@@ -121,7 +121,11 @@ class AnnotationHandler extends CodeContentHandler {
'version' => '1.1', 'version' => '1.1',
'viewBox' => "0 0 {$vbWidth} {$vbHeight}", 'viewBox' => "0 0 {$vbWidth} {$vbHeight}",
'xml:space' => 'preserve', 'xml:space' => 'preserve',
'xmlns' => 'http://www.w3.org/2000/svg' 'xmlns' => 'http://www.w3.org/2000/svg',
'width' => $baseWidth,
'height' => $baseHeight,
'style' => 'width: 100%; height: auto;'
); );
if (isset($metadata['annotation'])) { if (isset($metadata['annotation'])) {