Comments (4)
The xlink:href
attribute contains an invalid mime type.
- ... xlink:href="data:img/png;base64 ...
+ ... xlink:href="data:image/png;base64 ...
from sharp.
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.
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.
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)
- toFormat("jxl") throws an error HOT 2
- How to generate animation picture from an image sequence? HOT 1
- Error: heifsave: Unsupported compression when using libvips with support of libheif HOT 3
- Poor Image Quality with Rounded Corners Using sharp HOT 8
- Upscaling with nearest neighbor produces blurry image rather than scaled pixels HOT 3
- Documentation should mention "pnpm >= 7.1.0 with `--no-optional=false`" HOT 2
- Resize PNG with contain making added part transparent HOT 2
- Failed to install sharp on termux HOT 13
- Unable to Deploy Sharp Library on AWS Lambda and Heroku (Using MacBook M1 for development) HOT 1
- Error: Could not load the "sharp" module using the linux-x64 runtime HOT 3
- Errors processing heif files HOT 9
- Enhancement: add support for output format of SVG HOT 2
- `Could not load the "sharp" module using the linux-x64 runtime` in Amplify environment HOT 10
- ppc64le: A test (Image metadata) fails but only sometimes HOT 3
- Couldn't install sharp in docker image using GitHub actions. HOT 2
- Sharp not releasing memory after use. HOT 2
- if the image is a QR code or contains a QR code, the result is larger than the original image. HOT 2
- `tocolorspace` and `png({quality:x})` are mutually exclusive. HOT 1
- Error sharp with HEIC files - bad seek to 293616\nheif: Unsupported feature: Unsupported codec (4.3000) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharp.