question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

svgs break the runner

See original GitHub issue

If you have svgs in your repo and are using them with an img (not the best option, but I’ve done this before. Jimp fails to run over svg images and returns Error: Could not find MIME for Buffer <null>, due to the fact it supports jpeg, png, tiff, gif and bmp.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
karlnippoldtcommented, Mar 23, 2020

I’m encountering this issue, too, even with the fix in github. I think NPM isn’t giving me the latest version since there hasn’t been a version number bump.

1reaction
nothingrandomcommented, Mar 20, 2020

I had one thought pattern to fix this currently, that being in the processImage function to do a check if svg continue, otherwise do nothing.

const processImage = async imgElem => {
  if (imgPath.substr(imgPath.length - 3) !== 'svg') {
    // setAtrributes
    // try await getImageData
    // catch
  }
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

Replace runner status icons with SVGs (#294246) - GitLab.org
Replace runner status icons with SVGs. Currently, we're rendering a colored ... Use tasks to break down this issue into smaller parts.
Read more >
All SVGs on site now broken - WordPress.org
Hi there, All SVGs on my site are now broken and no longer appearing. ... I'm running Stow theme 1.5.15 with SVG Support...
Read more >
How to use SVGs in React | Sanity.io guide
Texts inside SVG do not flow like in HTML. Break text manually into <tspan> works for one-off graphics, but it is not scalable....
Read more >
SVGR fails to load SVGs with Next 11 · Issue #26130 - GitHub
Is svgo running? Just curious to know if custom webpack rules run before or after static image loaders within next core.
Read more >
React rendering SVG overwrites other SVGs on the page
js app, I'm importing some SVGs into my React v16.0.0 component like so. import React from 'react'; import Close ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found