Imgbot icon indicating copy to clipboard operation
Imgbot copied to clipboard

SVGs are broken in aggressive mode

Open Twixes opened this issue 3 years ago • 4 comments

We used Imgbot on https://github.com/PostHog/posthog.com and recently enabled aggressive optimization to increase compression rates. Imgbot put out a PR with that aggressive optimization of images and it went well for raster images, but simply broke all our SVGs (PR https://github.com/PostHog/posthog.com/pull/1568/)

Default Aggressive
Good Bad

All the places where weirdly overflowing alt text is shown are SVG images in <img src="data:image/svg+xml;base64,{base64-encoded-svg-file}"> form.

Twixes avatar Jul 16 '21 13:07 Twixes

Can you provide some images for which this is happening for us to look into the issue, or is it happening for all the svgs from that pr ( https://github.com/PostHog/posthog.com/pull/1568 )?

GrigoreMihai avatar Oct 27 '21 11:10 GrigoreMihai

Certainly many, posthog-logo-svg.svg (at the top of the files list) seems to be one example there, but not sure if all.

Twixes avatar Oct 27 '21 22:10 Twixes

if it at all helps the same thing happened to me. Here's my files Original Broken for temporary fix you can just add: "ignoredfiles": [ "*.svg" ] to your .imgbotconfig

VixieTSQ avatar Nov 08 '21 05:11 VixieTSQ