github-readme-streak-stats icon indicating copy to clipboard operation
github-readme-streak-stats copied to clipboard

Failed convert SVG to PNG

Open FajarKim opened this issue 1 year ago • 6 comments

Describe the bug A failure converting when changing an image from SVG to PNG on a website page

To Reproduce No comment

Expected behavior No comment

Screenshots Screenshot_20230924_201213

Smartphone (please complete the following information):

  • Device: Vivo Y12i
  • OS: Funtouch OS v6.8.59
  • Browser: Google Chrome
  • Version: 112.0.5615.125

Additional context No comment

FajarKim avatar Sep 24 '23 13:09 FajarKim

I've run into this as well, self-hosting with Vercel. Here are some more details:

  • sample url: https://github-readme-streak-stats.tycrek.dev/?user=tycrek&theme=dracula&hide_border=true&type=png
  • error: Failed to convert SVG to PNG: sh: line 100: inkscape: command not found

tycrek avatar Sep 29 '23 19:09 tycrek

@tycrek On Vercel this is expected since we do not have inkscape or imagick on Vercel and currently there isn't a known time when one of these will be available (this is tracked at https://github.com/vercel-community/php/issues/368)

DenverCoder1 avatar Sep 29 '23 20:09 DenverCoder1

@FajarKim Thanks for reporting :+1:

Unfortunately, I can't reproduce the issue locally which makes this a difficult issue to debug.

For the Demolab site which is on Heroku, it seems like sometimes it is working and sometimes it is not which means something is probably weird on Heroku's end of things.

I'll make sure to provide an update if I found out any additional info.

DenverCoder1 avatar Sep 29 '23 20:09 DenverCoder1

I made a small change in #605 that may potentially help with this issue.

It seems to be working on demolab when I try it, but I can't know if it is fixed or only temporarily working.

DenverCoder1 avatar Sep 29 '23 21:09 DenverCoder1

I seem to still run into this issue with Demolab, using this URL: https://streak-stats.demolab.com?user=tycrek&theme=dracula&hide_border=true&type=png (excluding theme and hide_border also fails).

tycrek avatar Oct 01 '23 17:10 tycrek

The error was "Failed to convert svg to png" But removing type=png solved the issue for me...

SamratAdhikari avatar Apr 22 '24 06:04 SamratAdhikari