Version 2.4.2: SVG no longer displayed with Jetpack image optimization
-
I am using the Jetpack Image optimization on a website (main reason: tiled gallery). Normally SVG images are ignored by the Jetpack plugin and until yesterday with release of SVG Support Version 2.4.2 the SVG Support plugin always worked fine in parallel with the Jetpack plugin.
With SVG Support Version 2.4.2 the SVG images are no longer displayed. Jetpack now tries to optimise the SVGs too. With Version 2.4.2 I get the following HTML code for the SVG:
<img width="1075" height="1209" src="https://www.covc.at/wp-content/uploads/covc_logo.svg" class="custom-logo" alt="Classic Oldtimer Veteranen Club" srcset="https://i0.wp.com/www.covc.at/wp-content/uploads//covc_logo.svg?w=1800&ssl=1 1800w, https://i0.wp.com/www.covc.at/wp-content/uploads//covc_logo.svg?w=2700&ssl=1 2700w" sizes="(max-width: 1075px) 100vw, 1075px">
For whatever reason, the srcset is now added to images but the links in the srcset are invalid (as Jetpack could not create optimised versions of SVGs), so I just see no pictures or empty link frames.
When I disable the SVG Support plugin, everything is fine as before. Then the output is correct and the scrset is not added to SVGs. The svg images are now correctly displayed on the website:
<img width="1075" height="1209" src="https://www.covc.at/wp-content/uploads/covc_logo.svg" class="custom-logo" alt="Classic Oldtimer Veteranen Club">
What was changed in SVG Support Plugin Version 2.4.2 that could have this side effects? With older version of the SVG Support there were no problems.
The current workaround is to keep the SVG Support plugin deactivated. ??
The page I need help with: [log in to see the link]
- The topic ‘Version 2.4.2: SVG no longer displayed with Jetpack image optimization’ is closed to new replies.