Comments (3)
While trying something else, I realized I had the image format wrong in my data:uri. Fixing it works on the playground, but unfortunately, I have another error in my Next.js project: TypeError: a is not iterable
. I'm not sure if the issue is in @next/og
or in Satori 🤔
from satori.
Well, the issue seem to lie in the size of the picture: I just noticed that Buffer.toString()
will cut the string if it exceeds MAX_STRING_LENGTH
. Now I know!
from satori.
Nope, that's not it: after shaking the length of Buffer.toString("base64")
it's not even close to MAX_STRING_LENGTH
. After a lot more search, it just happened to be that the mime type is jpeg
not jpeg
😮💨
from satori.
Related Issues (20)
- Satori does not work with components which are using forwardRef HOT 1
- BUG: Fails to apply HSL colors with a decimal point in the hue. HOT 4
- Absolute child of fragment does not position properly with true relative parent
- Type 'ArrayBuffer' is not assignable to type 'string'. when using local image. HOT 3
- Base64 encoded Webp Images are not working
- `span` background does not match the way browser renders HOT 2
- `lineClamp` / `textOverflow` incorrectly overflows after first word in a line HOT 1
- Add links to text/images
- @vercel/og and next/og: Can't load image: Unsupported image type: unknown HOT 1
- Certain tw classes are not working in the playground
- Support for image-rendering: pixelated HOT 1
- SVG not generating on production HOT 1
- justifyContent: "end" not supported HOT 1
- Update Emojis to include Unicode 15.0+ HOT 2
- Inline SVG's not vectorized HOT 2
- `Unsupported image type: unknown` in production only HOT 1
- Async components
- Support for groups and classnames or id's HOT 2
- Satori generates a circle object for gradient, which caused high memory in Resvg
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 satori.