diff --git a/src/lib/ui/core/ImageViewer/ImageViewer.svelte b/src/lib/ui/core/ImageViewer/ImageViewer.svelte index 9c2df4250..bfcfc4a7b 100644 --- a/src/lib/ui/core/ImageViewer/ImageViewer.svelte +++ b/src/lib/ui/core/ImageViewer/ImageViewer.svelte @@ -35,8 +35,8 @@ imgProps = { src: img.src, alt: img.alt, - width: img.offsetWidth, - height: img.offsetHeight, + width: img.naturalWidth || img.offsetWidth, + height: img.naturalHeight || img.offsetHeight, el: img, } }