From 074f02d30109a284bcf4471e9f7179129bf79e48 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Fri, 22 May 2026 08:27:06 -0700 Subject: [PATCH] Properly report svg size from base image Signed-off-by: Justin Georgi --- includes/AnnotationHandler.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/AnnotationHandler.php b/includes/AnnotationHandler.php index 2fd3ae3..3c92fa6 100644 --- a/includes/AnnotationHandler.php +++ b/includes/AnnotationHandler.php @@ -121,7 +121,11 @@ class AnnotationHandler extends CodeContentHandler { 'version' => '1.1', 'viewBox' => "0 0 {$vbWidth} {$vbHeight}", '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'])) {