@hjades
Front-End Developer
Nothing here yet.
Nothing here yet.
No blogs yet.
Hi Lalit , thank you! I actually tried sharp after reading your post about Pagely ! It's really good and fast! I also played a bit with the Glitch code. So, I decided to try converting my SVGs with it, but I encountered a problem. First, I realized that I can't write a file in Next.js API as the file system is read-only, but I ended up just sending the buffer to the client, and it works! Unfortunately, because I'm using foreignObject and it needs browser context, so I can't use it in Node.js environment with sharp . Sigh 🥲 After that, I kind of forgot to mention it in this post... 🥲 But, yes, generally we can use SVG converted into PNG as OG Image! I'll edit the post later on~ Thank you again 🧡