GewoonJaap / svg-to-png-cf-worker

SVG to PNG as Cloudflare Worker
https://svg-to-png.mrproper.dev/https://docs.tandoor.dev/logo_color.svg
26 stars 2 forks source link

bug: Text and Images Missing in SVG to PNG Conversion #27

Open erados opened 2 days ago

erados commented 2 days ago

Hi,

I’ve been using your code and it’s been working well so far.

However, I’ve encountered an issue where both text and images seem to be missing during the SVG to PNG conversion process.

Is this the expected behavior, or could this be a bug?

I've provided two links below for reference:

Could you please advise if there’s a workaround, or if this requires further investigation?

Thanks in advance!

GewoonJaap commented 1 day ago

Hello, Thanks for your bug report. It looks like the API really can't render text. After some investigation it looks like this is a limitation of the framework I am using to render SVG -> PNG, https://github.com/RazrFalcon/resvg?tab=readme-ov-file#limitations I'm not sure if I can fix this as the API runs on a Cloudflare worker and I don't know if they support this feature. I will look into it.

erados commented 1 day ago

Thank you, I will conduct my own research as well.

Wish us luck!