resvg PNG output filesize #245
Replies: 3 comments
-
It’s configurable, but also a trade off, that setting a higher compression rate results slower generation speed. I’ll see what we can make a better balance here. |
Beta Was this translation helpful? Give feedback.
-
That would be great. Anecdotally, the images generated by resvg are more accomodating of a compression pass than the ones generated by puppeteer: This example is running using oxipng on fastest setting on almost identical images. Resvg: Puppeteer: |
Beta Was this translation helpful? Give feedback.
-
Here's a related feature request for jpeg: #235 |
Beta Was this translation helpful? Give feedback.
-
I'm in the process of migrating my OG image layouts from my customised solution based on vercel/ogimage, and things are generally pretty smooth.
One thing I've noticed that that the generated files are very different in file size, with the Satori-based ones being about 2x for comparable images.
Is there a chance that something like oxipng could be incorporated into the process?
Beta Was this translation helpful? Give feedback.
All reactions