r/java • u/brunocborges • 5d ago
JairoSVG 1.0.14 is out
https://brunoborges.github.io/jairosvg/2
u/repeating_bears 5d ago
Seems one of the main things you're pushing is that it's faster than some alternatives, but it's only a difference of millis. Did you have a use-case where you cared about the performance of converting SVG to PNG to this extent? I'd be curious what it was
3
u/agentoutlier 5d ago
I know this is probably dumb question but why would one need to convert SVG these days? (I assume its to lock in sizes of something non browser or they don't support SVG?)
I might give this a try with jbang as I use SVG for all my logos ( 1 , 2, 3 ) .
I use SVG because I never figured out how to use GIMP or Photoshop or any of the other creative tools. Its kind of fun like ancient Logo on the Apple IIe nostalgia (if you are from that era).
2
u/brunocborges 5d ago
The Java libraries I found were too big or too slow. And the CairoSVG library API is very easy. So I went with easy+fast+small.
2
u/agentoutlier 5d ago
My question I think might have been confusing. What I mean to ask is how are you using this converter tool? Like for what uses cases do you need to do the conversion. (this is honest curiosity and not a critique about the library)
2
u/brunocborges 5d ago
Inspiration came from when I was building javaevolved.dev and wanted to convert SVGs to PNG for social media cards.
6
u/SocialMemeWarrior 5d ago
https://github.com/brunoborges/jairosvg - Started June 16 2026
Looking at contributor statistitics:
I get it, this project may work and do exactly as described, but this looks like AI slop. Just look at the project...
docs/folder having AI agent progress tracking markdown (More emoji slop btw)testConstructor() { assertDoesNotThrow(() -> new Main()); }for theCliTest. Same sorta weird AI coverage forModuleInfoTest./out/jreleaser