Image description and size
-
We’ve been trying out this plugin for SVG support in WordPress, after some issues with another plugin, and this seems to work better.
However an inconsistency has been discovered which is a bit annoying:
1. When inserting an SVG from the media library which has an image description defined in the media library, the image description is not inserted with the SVG. Inserting PNGs/JPEGs with image descriptions like this does however. Editing the image and adding an image description for this particular usage does insert the description.
2. When initially inserting an SVG the
<img>
tag that gets generated has no width or height attributes, which is fine. But if one edits the image to add the image description as described above, the<img>
tag gets width and height attributes set to 2000×2000 (which is the size shown in the size dropdown in the image dialog).Why is there a difference with width/height attributes depending on insert vs. edit? And why isn’t the image description inserted with the image initially?
This site uses a custom built theme by the way, which has no custom hooks that should affect this. The only thing would be some custom image sizes that are defined (but not 2000×2000).
- The topic ‘Image description and size’ is closed to new replies.