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

render: only encodeHeader() for svg output #2584

Merged
merged 1 commit into from
Apr 19, 2020

Conversation

ploxiln
Copy link
Contributor

@ploxiln ploxiln commented Apr 14, 2020

fixes #1309
which points out that 08be1ba added this
odd out-of-bounds "header" just for svg metadata

fixes graphite-project#1309
which points out that 08be1ba added this
odd out-of-bounds "header" just for svg metadata
@ploxiln
Copy link
Contributor Author

ploxiln commented Apr 18, 2020

I finally got around to testing with a real setup, seems to work. I also prepared a super-trivial example of png and svg with this change:

https://www.ploxiln.net/adhoc/render.png
https://www.ploxiln.net/adhoc/render.svg

pdf output is a bit garbled for me, but seems to be garbled the same with graphite-web-1.1.5 which I still have running somewhere. seems the main problem may be the overall width/height? anyway I'm pretty sure it is unrelated (and I don't know the contexts in which pdf output is used)
https://www.ploxiln.net/adhoc/render.pdf

@piotr1212 piotr1212 merged commit 910bdea into graphite-project:master Apr 19, 2020
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

Successfully merging this pull request may close these issues.

There is no need to call encodeHeaders for png images
2 participants