[wp-trac] [WordPress Trac] #64346: SVG Image dimensions overwritten to hardcoded 24 pixels
WordPress Trac
noreply at wordpress.org
Thu Dec 4 01:32:28 UTC 2025
#64346: SVG Image dimensions overwritten to hardcoded 24 pixels
--------------------------+------------------------------
Reporter: ajayadav09 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 6.9
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Old description:
> I have an SVG image in my <Button /> component from wordpress/componets
> as an icon. Once the version updated to 9. The dimension of the svg image
> which is originally 160 X 50 chnaged to 24px in width and height. This
> was supposedly introduced by the changes here for
> [https://core.trac.wordpress.org/ticket/63714].
>
> I have added the images in the comments on the commit too:
> [https://github.com/WordPress/wordpress-
> develop/commit/8c374a5adb9bee9333a013a575b3aa0e828085be#commitcomment-171930242]
New description:
I have an SVG image in my `<Button />` component from
`wordpress/components` as an icon. Once the version updated to 9. The
dimension of the svg image which is originally 160 X 50 changed to 24px in
width and height. This was supposedly introduced by the changes here for
#63714.
I have added the images in the [https://github.com/WordPress/wordpress-
develop/commit/8c374a5adb9bee9333a013a575b3aa0e828085be#commitcomment-171930242
comments on the commit] too.
--
Comment (by sabernhardt):
Hi and welcome to WordPress Core Trac!
I do not think that this would relate to ticket #63714. It edited the
`wp_get_attachment_image()` function, and the `ns.svg` plugin resource is
not an attachment.
This might be one of the cases of
[https://github.com/WordPress/gutenberg/pull/70756/files#r2213056607
GB70756] changing the old output of the `Icon` component, but I would
appreciate someone else checking that (because I do not know the
`wordpress/components` package well).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64346#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list