New issue by smartmic on void-packages repository https://github.com/void-linux/void-packages/issues/48308 Description: ### Is this a new report? Yes ### System Info Void 6.6.11_1 x86_64 AuthenticAMD notuptodate rFF ### Package(s) Affected emacs-gtk3-29.2_1 ### Does a report exist for this bug with the project's home (upstream) and/or another distro? _No response_ ### Expected behaviour Rendering SVG images which only have a `viewBox` specification should work. ### Actual behaviour When I open an SVG file which has only a `viewBox` attribute and **no** `height` or `width` (perfectly valid SVG, renders fine on any SVG viewer and also with Emacs on other distros/platforms), only a small frame appears and no image is rendered. In buffer `*Messages*`, this (repeating) message appears: ``` Invalid image size (see ‘max-image-size’) ```` I shared more details on [Reddit](https://www.reddit.com/r/voidlinux/comments/19atapp/rendering_svg_in_emacs_is_broken/) ### Steps to reproduce 1. Try to display this SVG as image: ``` Hello ``` It will show only a small empty frame. 2. Change to text mode and add a `height` attribute with a value to the SVG: ``` Hello ``` 3. Switch back to image mode, it will render fine