Open ccoVeille opened 8 months ago
BTW, what is the current status with rsvg-convert
support.
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 --width
and --height
?
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.
Hey @ccoVeille, are you noticing issues with the
--width
and--height
?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
https://github.com/charmbracelet/freeze/blob/4fcacffcfe36ffa64637675987496fe86e5ca12c/png.go#L14-L31
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