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

Images with shadow settings have a completely transparent background #65

Open
iamjackg opened this issue Apr 1, 2024 · 8 comments
Open

Comments

@iamjackg
Copy link

iamjackg commented Apr 1, 2024

Describe the bug
If I generate an image with any shadow options, the background becomes completely transparent. It happens regardless of other settings (window, no window, border radius, etc.)

To Reproduce
Steps to reproduce the behavior:

echo '# Hello' > test.md
freeze test.md -o test.md.png --shadow.blur 20 --shadow.x 10 --shadow.y 10

Expected behavior
An image of the markdown file with a drop shadow.

Actual behaviour
test md

Desktop (please complete the following information):

  • OS: linux
  • Browser: firefox
  • Version: v0.1.4 deb package

Happy to help debug!

@meowgorithm
Copy link
Member

Hi! Quick question: do you have rsvg-convert installed? Will help us narrow this down.

@iamjackg
Copy link
Author

iamjackg commented Apr 1, 2024

I do not!

@meowgorithm
Copy link
Member

Noted! If you need a workaround in the meantime I’m guessing installing rsvg-convert will solve things for you. It’s typically included in the librsvg package and is available on Linux and macOS.

@iamjackg
Copy link
Author

iamjackg commented Apr 1, 2024

Woah, that drastically cuts down render time too! Thanks, this'll do for now.

@iamjackg
Copy link
Author

iamjackg commented Apr 1, 2024

Celebrated too soon -- now it's not using the right font. Everything seems to get rendered with the default system font.

@meowgorithm
Copy link
Member

Dang. If it’s not too much trouble, would you mind opening an issue for that accordingly?

@maaslalani
Copy link
Member

maaslalani commented Apr 2, 2024

Hey @iamjackg, thanks for flagging this. Will look into this soon! Both the background with resvg and font issues with librsvg.

@agrmohit
Copy link

Can reproduce it with freeze v0.1.6 on Windows 11, installed using winget.

{
  "fmt": {
    "lineWidth": 120
  }
}
freeze -c full deno.json -o deno.json.png

deno json

OS info:

Edition	Windows 11 Pro
Version	23H2
Installed on	‎2024-‎03-‎29
OS build	22635.3495
Experience	Windows Feature Experience Pack 1000.22700.1005.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants