It doesn’t seem to be a wordpress issue but it has to do with how recursion works in svg files see the answer to this question for more details. Like @tony-djukic replied the way to go is by embedding the image in the svg file.
Related Posts:
- getting uploaded SVG dimensions on front-end
- Featured Image .svg height and width 1px only
- SVG Featured image not shown in twitter
- How to upload and style svg logo?
- Allow SVG in WP step by step
- Hover a css icon width other color inside wp_get_attachment_image
- change with CSS the color of an svg background image set with “background-image: url()”
- Why are some SVG-images not visible in my footer?
- Can’t upload svg files in WordPress
- Customize all image captions
- show hide image script after 4 seconds [closed]
- How do I disable responsive images in WP 4.4?
- How to delete resized (cropped) image uploads and prevent future resizing?
- After Moving a Site to Another Domain, All Images Are Lost
- Featured image shortcode
- How to find attachment by it’s name?
- Change html structure of all img tags in WordPress
- Theme Customiser Image Control
- How to disable “insert into post” only when selecting the Featured Image?
- Is there a way to define a default caption to all uploaded images
- How to increase media image scale limit?
- Dynamic-Image-Resize Plugin does not output anything
- How to default all users to no link for attachments?
- How to output placeholder image if no featured image set?
- Cannot access the thumbnails of attachment images… Cannot find the reason
- How to place an image into header.php? [closed]
- Uploading an image as featured image from frontend form
- @wordpress/create-block image url in css
- How to include a picture in a blog post such that it will show in Facebook?
- Remove ‘wp-content/themes/themename/’ from Image path
- Why html tags are being appended to my pictures?
- How to create a simple slideshow out of a post image gallery?
- Is there a way to change wordpress image resize settings?
- wordpress media library shows empty images
- How to change the target size of images clicked on in WordPress standard gallery
- Adding different backgrounds for different pages
- Mobile Featured Image Bug
- If Media Type .GIF
- Migrate image from my old blog
- the_post_thumbnail() image sizing problem?
- Imagick vs GD colour issues on image uploads
- How to add image and featured image to post by WP REST API
- Jetpack’s photon causes local site to try and serve images from WordPress CDN [closed]
- Get ALT attribute from title post (code not work)
- Resize images in existing posts
- WordPress PNG compression issue
- “Unable to create new image” error in wordpress dashboard image editor
- Fallback image size when using wp_get_attachment_image_src / full size compressed image
- Rewrite all article pictures to link to file
- Upload box media size not working
- How can I add a ‘Click to Enlarge Image’ feature, with the enlarged image opening in a popup?
- Is there a resolution limit in image resize?
- How to remove header images from displaying (not css or editing)?
- Setting default image size
- Automatically Insert alt attribute above image has h2
- Rebuild thumbnails via WP Cli – how?
- Images uploading from media going in wrong folder
- Row background image not showing in mobile browser served from wamp local host
- Get ID for previous/next image link
- adding image to post thumbnail from another server
- Logo is not being displayed in header (Twentytwelve)
- Set Featured Image not opening – Stuck at loading
- Simple Local Avatar Plugin
- Pagination between images (active/inactive)
- Always display a picture even if the link is broken?
- wp_get_attachment_image – enable width and height attributes for an SVG image
- How to remove image size inline style in article and include caption
- Do I need to re-register all my images in the media library after a migration?
- How can I change the header on the pages?
- still need help-images inside wp-content/ uploads/ are not showing up in my media library and uploaded using FTP protocol
- ADD class to all my images (thumbail)
- Export wordpress image ID based off keyword search
- Post Images are not showing up whenever I use shortCodes in my posts
- Adding a URL Parameter to JPEG images in posts
- How to Make Only Images Connected to a Post Show? Not Entire Media Collection?
- Delete post if featured image is smaller than Y pixels by Y pixels
- How to use lossless compression with WP_Image_Editor
- Edit image itself
- Url link to feature image in the portfolio [closed]
- How Do I Auto Generate Thumbnail from First Embedded Image?
- Exporting a portfolio with pictures
- Protocol relative url not pulling up images on IE, FF, and OPERA
- Retaining original image size
- Rename uploads filenames to POST-ID on upload
- Transfered live site to new server and images are not showing
- Limit files uploaded per folder
- Imagem resolution responsive
- How do you hide images from posts only
- Display image title and caption inside a single post
- WP is showing wrong image dimensions
- Bug when uploading pictures with Arabic name characters?
- Changing logo image in header.php upon language detection
- Hover images and Videos
- How to get WordPress to resize images for srcset?
- How to give path to image in wordpress?
- Edit multiple posts featured image
- Make Jetpack CDN to filter/ignore images based on SRC [closed]
- images map on website not working
- Remove srcset thumbnail attribute for products in the WooCommerce shopping cart
- Control the srcset, image size for get_the_post_thumbnail