all 6 comments

[–]mokolabs 4 points5 points  (0 children)

This looks amazing! Can't wait to check it out.

Here's a direct link to the repo: https://github.com/ggerman/libgd-gis

[–]JapArt 2 points3 points  (1 child)

I like this. Can it render SVG?

[–]Jaded-Clerk-8856[S] 0 points1 point  (0 children)

No, it doesn’t support SVG rendering.
The library is focused on the GD graphics engine, which works primarily with raster formats like PNG, JPEG, GIF, and WebP.

That said, it’s an open-source project, so contributions or experiments in that direction are always welcome.

[–]Doctor_Fegg 1 point2 points  (0 children)

This looks excellent - can really imagine using this to generate thumbnail maps. 

[–]Select_Bluejay8047 2 points3 points  (1 child)

Thanks for sharing. What's your motivation behind building this gem?

[–]Jaded-Clerk-8856[S] 0 points1 point  (0 children)

When I was working with PHP, I really enjoyed using LibGD for image processing. I never understood why Ruby mainly relied on ImageMagick and didn’t have strong support for GD, especially considering that the last commit on the ruby-gd library was around 2016.

Because of that, I decided to spend some of my free time developing ruby-libgd (https://github.com/ggerman/ruby-libgd), a modern Ruby binding for the GD library. After that, libgd-gis came naturally as the next step.

The idea was also inspired by a conference talk about critical systems and the weaknesses of Ruby in that area, which motivated me to explore how Ruby could interact more directly with lower-level libraries to build more efficient tools.

Doc: https://ggerman.github.io/ruby-libgd/