Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed convert SVG to PNG #596

Open
FajarKim opened this issue Sep 24, 2023 · 6 comments
Open

Failed convert SVG to PNG #596

FajarKim opened this issue Sep 24, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@FajarKim
Copy link
Contributor

FajarKim commented Sep 24, 2023

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 FajarKim added the bug Something isn't working label Sep 24, 2023
@tycrek
Copy link

tycrek commented Sep 29, 2023

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

@DenverCoder1
Copy link
Owner

@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 vercel-community/php#368)

@DenverCoder1
Copy link
Owner

DenverCoder1 commented Sep 29, 2023

@FajarKim Thanks for reporting 👍

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
Copy link
Owner

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.

@tycrek
Copy link

tycrek commented Oct 1, 2023

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).

@SamratAdhikari
Copy link

SamratAdhikari commented Apr 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants