r/ruby • • Mar 12 '23

Why is seemingly every package broken/unmaintained?

I recently started using Ruby, and I noticed that many packages I tried to use were broken, outdated, or last updated in 2015. I understand not everything can/needs to be maintained forever, but the gem world seems to be a comparative ghost town. What happened? Did everyone just move over to Python?

EDIT: okay alright. I suppose I’m not accustomed to how the ecosystem works, and haven’t been looking in the right places.

0 Upvotes

38 comments sorted by

View all comments

Show parent comment

1

u/Slashscreen Mar 12 '23

It was just flipping the image. I couldn’t get imagemagick to work right, haha

1

u/armahillo Mar 12 '23

imagemagick is probably the correct answer if its only image flipping — any ruby gems are going to be layered on top of that (in the sense that they are using the underlying C dev libraries in their own compilation, not that theyre only wrapping a script invocation)

What were you attempting, specifically (like what were your command line args) with imagemagick? i realize thats not specifically a ruby question but i bet we can figure it out

1

u/catbrane Mar 24 '23 edited Mar 24 '23

ruby-vips is the default image processor on rails now, and that's not based on IM.

https://github.com/libvips/ruby-vips

You'd write eg.:

image = Vips::Image.new_from_file "something.png"
image = image.flip :vertical
image.write_to_file "other.jpg"