Git Product home page Git Product logo

Comments (4)

lovell avatar lovell commented on July 24, 2024

The xlink:href attribute contains an invalid mime type.

- ... xlink:href="data:img/png;base64 ...
+ ... xlink:href="data:image/png;base64 ...

from sharp.

clshortfuse avatar clshortfuse commented on July 24, 2024

Thanks. I'm not sure how I missed that. It seems most (if not all) browsers use MIME sniffing to deal with unknown or invalid mime types within the image context:

That would cover this instance.

Though this seems more an issue for the parser, not sharp directly.

from sharp.

lovell avatar lovell commented on July 24, 2024

The image loading logic for PNG-in-SVG is part of librsvg.

Given this appears to be due to a bug in Photoshop, perhaps you could report this to Adobe (annual revenue $19 billion), although good luck getting them to fix it 😄 .

from sharp.

clshortfuse avatar clshortfuse commented on July 24, 2024

Thanks. I reached the same conclusion with librsvg. It seems it has code to sniff if there's no mime type. They added that because of another Adobe application: Illustrator, but I'm guessing there's no code if it's invalid (Photoshop). Adobe strikes again.

from sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.