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

SVGs cropping right and bottom #15

Closed
kjcole opened this issue Apr 20, 2022 · 6 comments · Fixed by #18
Closed

SVGs cropping right and bottom #15

kjcole opened this issue Apr 20, 2022 · 6 comments · Fixed by #18
Labels
bug Something isn't working

Comments

@kjcole
Copy link

kjcole commented Apr 20, 2022

Since large PNGs were giving me trouble, I decided to switch the configuration to SVGs.

However, this crops the right and bottom of the score, eliminating too much.

The result can be seen by looking at any of the 47 scores (so far) at:

https://ubuntourist.codeberg.page/Celtic_Song_Book/

Running

$ lilypond -o song_of_the_heather -dbackend=svg song_of_the_heather.ly

produces the correct uncropped output.

(I notice that running lilypond from the command line produces a true SVG, whereas the extension does a base-64 encoding of a PNG, and wraps SVG code around it.)

@kjcole
Copy link
Author

kjcole commented Jul 2, 2022

Any progress?

@SilverRainZ
Copy link
Member

Sorry, not yet, I will take a look this week.

@kjcole
Copy link
Author

kjcole commented Jul 4, 2022

No rush. Just checking back.

@SilverRainZ
Copy link
Member

Cropping an SVG in my environment does not eliminate too much, but also weird:

火狐截图_2022-07-13T15-03-55 682Z

@kjcole
Copy link
Author

kjcole commented Jul 13, 2022

Weird. Yes. Thanks for taking a look. I had hoped that SVG with it's scaling ability would ultimately be a better choice, but the strangeness may force me back to the PNG -- which as previously reported, has its own challenges / bugs...

@SilverRainZ
Copy link
Member

(I notice that running lilypond from the command line produces a true SVG, whereas the extension does a base-64 encoding of a PNG, and wraps SVG code around it.)

Yes, this is the key. The output of ImageMagick is not real SVG, but a wrapped PNG and its default resolution is only 72.

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

Successfully merging a pull request may close this issue.

2 participants