[wp-trac] [WordPress Trac] #62312: wp_image_src_get_dimensions() - Warning for SVG with postmeta height and width empty
WordPress Trac
noreply at wordpress.org
Mon Feb 23 20:14:56 UTC 2026
#62312: wp_image_src_get_dimensions() - Warning for SVG with postmeta height and
width empty
--------------------------+------------------------------
Reporter: apermo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by dmsnell):
@soean had an SVG reproducing the issue from the related ticket; perhaps
that can be shared here.
@apermo @donbowman this is a basic question, but how should we be framing
this issue of height and width in regards to SVG? it seems like the
constraints are going to be different than for a raster image format,
whereby the expectation I would have is that an SVG is infinitely scalable
//unless// height and width constraints are manually applied. and then, I
don’t know if the expectation is that we’d have metadata indicating that
or whether the constraints would be found embedded within the SVG itself.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62312#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list