You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the <img/> tag going to be supported? I currently use Satori to convert HTML+CSS --> PNG for OG Image purposes, but it's a bit slow. Was moving to this and then realized it doesn't support images.
The text was updated successfully, but these errors were encountered:
Images aren't supported yet, but that is relatively high on my list.
For the time being if you're up for a little bit of work, you can use a regular div sized to what the image should be, get the area that it occupies, and paint the image there after painting the layout. I just added an example here for how to do that using node-canvas's loadImage [1] and it should look like this:
Only problem would be if you need content to layer on top of the image, like positioned elements or negative margins.
Hope it works for you and let me know if you run into any issues. The API is still a work-in-progress, and I definitely want to hear about any pain points.
[1] loadImage is for URLs, but there's also an API for loading an image from a buffer.
Is the
<img/>
tag going to be supported? I currently use Satori to convert HTML+CSS --> PNG for OG Image purposes, but it's a bit slow. Was moving to this and then realized it doesn't support images.The text was updated successfully, but these errors were encountered: