-
Notifications
You must be signed in to change notification settings - Fork 47
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
png: rsvg-convert implementation #51
Comments
BTW, what is the current status with I see nothing in the readme about it, the code does not suggest installing it to speed up PNG generation. |
Hey @ccoVeille, are you noticing issues with the We do all the calculations in the SVG such that we don't need to specify the width and height during the conversion but let me know if you are seeing incorrect behaviour. |
Nope, I just noticed the signature was defining unused variables. I was suggesting to either pass the variables to binary or remove them from the function signature. I think it confirms they can be removed. If you think they should stay for signature consistency. You could use _, _ float64 but I don't think it's a good idea. At first, I thought your code was relation on interfaces, so you had to get them in the signature. It's up to you. |
There is something strange to me with current code
freeze/png.go
Lines 14 to 31 in 4fcacff
You are not using
w
andh
variables.So either, you should simplify the signature, or use them as parameter for
rsvg-convert
as it supports it
So the code would be something like this
The text was updated successfully, but these errors were encountered: