Menu

Active Storage without libvips or ImageMagick: a pure-Ruby alternative
📰

Active Storage without libvips or ImageMagick: a pure-Ruby alternative

DEV Community·Masaki Komagata·7 months ago
#9m05NuMn
#opensource#ruby#rails#showdev#ai
Reading 0:00
15s threshold

Update (2026-04-23): v0.3.0 dropped the last remaining gem dependency ( image_processing ) — the library is now fully zero-dependency. There's also a browser playground where you can run ImageProcessing::Pura chains directly in your browser via ruby.wasm.

TL;DR

I built pura-image — a pure-Ruby image processing library that drops into Rails Active Storage as a replacement for ImageProcessing::Vips / ImageProcessing::MiniMagick . No brew install vips . No apt install imagemagick . No C compiler. Just gem install .

# Gemfile gem "image_processing" + gem "pura-image"

Enter fullscreen mode

Exit fullscreen mode

# config/application.rb config . active_storage . variant_processor = :pura

Enter fullscreen mode

Exit fullscreen mode

# Dockerfile - RUN apt-get install -y libvips-dev imagemagick

Enter fullscreen mode

Exit fullscreen mode

That's the entire integration.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.