A summary of data about the Ruby ecosystem.

https://github.com/rmagick/rmagick

Ruby bindings for ImageMagick
https://github.com/rmagick/rmagick

Keywords

imagemagick rmagick ruby

Keywords from Contributors

rubygems activerecord activejob mvc rack crash-reporting multithreading rspec authorization feature-flag

Last synced: about 12 hours ago
JSON representation

Repository metadata

Ruby bindings for ImageMagick

README.md

RMagick

GemVersion
CI

Table of Contents

Introduction

RMagick is an interface between the Ruby programming language and the
ImageMagick image processing library.

Prerequisites

These prerequisites are required for the latest version of RMagick.

OS

  • Linux
  • *BSD
  • macOS
  • Windows
  • Other *nix-like systems

C++ compiler

  • RMagick 5.4.0 or later requires a C++ compiler.

Ruby

  • Version 3.0 or later.

You can get Ruby from https://www.ruby-lang.org.

Ruby must be able to build C-Extensions (e.g. MRI, Rubinius, not JRuby)

ImageMagick

  • Version 6.8.9 or later (6.x.x).
  • Version 7.0.8 or later (7.x.x). Require RMagick 4.1.0 or later.

You can get ImageMagick from https://imagemagick.org.

Linux

Ubuntu

On Ubuntu, you can run:

sudo apt-get install libmagickwand-dev

Centos

On Centos, you can run:

sudo yum install ImageMagick-devel

Arch Linux

On Arch Linux, you can run:

pacman -Syy imagemagick

Alpine Linux

On Alpine Linux, you can run:

apk add imagemagick imagemagick-dev imagemagick-libs

or you can run if you would like to use ImageMagick 6:

apk add imagemagick6 imagemagick6-dev imagemagick6-libs

macOS

On macOS, you can run:

brew install imagemagick

or you can run if you would like to use ImageMagick 6:

brew install imagemagick@6

Windows

  1. Install latest Ruby+Devkit package which you can get from RubyInstaller for Windows.
  2. Download ImageMagick-7.XXXX-Q16-x64-dll.exe (not, ImageMagick-7.XXXX-Q16-x64-static.exe) binary from Windows Binary Release, or you can download ImageMagick 6 from Windows Binary Release.
  3. Install ImageMagick. You need to turn on checkboxes Add application directory to your system path and Install development headers for C and C++ in an installer for RMagick.

If you want to install ImageMagick using winget, run the following command:

winget install ImageMagick.ImageMagick --custom /TASKS=modifypath,install_Devel

If you want to install ImageMagick using Chocolatey, run the following command:

choco install imagemagick -PackageParameters InstallDevelopmentHeaders=true

Installing RMagick

[!NOTE]
When you update the ImageMagick version, we have recommended you should re-install RMagick.

Installing via Bundler

Add to your Gemfile:

gem 'rmagick'

Then run:

bundle install

For Windows, you need to run using ridk tool:

ridk exec bundle install

Installing via RubyGems

Run:

gem install rmagick

For Windows, you need to run using ridk tool:

ridk exec gem install rmagick

Versioning

RMagick is versioned according to Semantic Versioning. For stable version
compatible with Ruby 3.0+, use ~> 3.0. Versions >= 6 work on Ruby >= 3.x
only.

Using RMagick

Require RMagick in your project as follows:

require 'rmagick'

See https://rmagick.github.io/usage.html for links to more information.

Things that can go wrong

The RMagick installation FAQ has answers to the most commonly reported
problems, though may be out of date.

Can't install RMagick. Can't find libMagickCore-XXXX.so or one of the dependent libraries. Check the mkmf.log file for more detailed information

Typically this message means that one or more of the libraries that ImageMagick
depends on hasn't been installed. Examine the mkmf.log file in the ext/RMagick
subdirectory of the installation directory for any error messages. These
messages typically contain enough additional information for you to be able to
diagnose the problem. Also see this FAQ.

Cannot open shared object file

If you get a message like this:

... /core_ext/kernel_require.rb>:136:in `require': cannot load such file -- RMagick2.so (LoadError)
  (snip)

you probably do not have the directory in which the ImageMagick library
is installed in your load path. An easy way to fix this is to define
the directory in the LD_LIBRARY_PATH environment variable. For
example, suppose you installed the ImageMagick library libMagickCore-XXXX.so in
/usr/local/lib. (By default this is where it is installed.) Create the
LD_LIBRARY_PATH variable like this:

export LD_LIBRARY_PATH=/usr/local/lib

On Linux, see ld(1) and ld.so(8) for more information. On other operating
systems, see the documentation for the dynamic loading facility.

This operation might not be required when you can use 4.2.5 or later.

Segmentation fault

Default stack size of your operating system might be too small. Try removing
the limit with this command:

ulimit -s unlimited

Upgrading

If you upgrade to a newer release of ImageMagick, make sure you're using a
release of RMagick that supports that release. It's safe to install a new
release of RMagick over an earlier release.

More samples

You can find more sample RMagick programs in the /examples and /doc/ex directories. These
programs are not installed in the RMagick documentation tree.

Reporting bugs

Please report bugs in RMagick, its documentation, or its installation programs
via the bug tracker on the RMagick issues page.

However, We can't help with Ruby installation and configuration or ImageMagick
installation and configuration. Information about reporting problems and
getting help for ImageMagick is available at the ImageMagick
website
or the ImageMagick Forum.

Development Setup

In order to minimize issues on your local machine, we recommend that you make
use of a Vagrant installation.

Steps to get up and running with a passing build are as follows:

1) set up the Vagrant environment

If you don't already have Vagrant installed, you can download and install it
from here. Once installed, we can set up a pre-built environment:

git clone https://github.com/tjschuck/rake-compiler-dev-box.git
cd rake-compiler-dev-box
vagrant up

This last part will probably take a while as it has to download an Ubuntu image
and configure it. If there is an error during this process, you may need to
reboot your computer and enable virtualization in your BIOS settings.

2) clone RMagick and log in to the vagrant box

Within the rake-compiler-dev-box directory:

git clone https://github.com/rmagick/rmagick.git # or your fork
vagrant ssh

3) install ImageMagick and additional environment stuff

cd /vagrant/rmagick
export IMAGEMAGICK_VERSION=6.8.9-10
bash ./before_install_linux.sh

This will take just a few minutes to build ImageMagick

4) build RMagick

rake

This compiles the RMagick extensions and runs the tests. If all goes well
you'll see a lot of output, eventually ending in something like:

Finished tests in 35.865734s, 11.3758 tests/s, 6560.3007 assertions/s.

408 tests, 235290 assertions, 0 failures, 0 errors, 0 skips

And you're all set! The copy of RMagick within /vagrant/rmagick inside your
Vagrant session is the same as the one in the rake-compiler-dev-box directory
on your machine. You can make changes locally and run tests within your ssh
session.

Credits

Authors: Tim Hunter, Omer Bar-or, Benjamin Thomas

Thanks to ImageMagick Studio LLC for ImageMagick and for hosting
the RMagick documentation.

License

MIT License

Releasing

See https://github.com/rmagick/rmagick/wiki/Release-Process

  1. Update ChangeLog
  2. Edit lib/rmagick/version.rb
  3. Are the tests passing? Run rake again just to be sure.
  4. rake release

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 4 days ago

Total Commits: 3,664
Total Committers: 64
Avg Commits per committer: 57.25
Development Distribution Score (DDS): 0.449

Commits in past year: 40
Committers in past year: 2
Avg Commits per committer in past year: 20.0
Development Distribution Score (DDS) in past year: 0.025

Name Email Commits
rmagick r****k 2018
Watson w****8@g****m 743
Robert Fletcher m****p 189
Dirk Lemstra d****k@l****g 176
Ilya Vassilevsky v****y@g****m 155
Pavel Lobashov s****n@g****m 131
tim t****m 54
u338_steven u****n@g****m 46
Benjamin Fleischer g****b@b****m 28
Le1gh L****r@g****m 12
mmaiza m****f@d****m 10
Oldrich Vetesnik o****k@g****m 10
baror b****r 7
Omer Bar-or o****r@b****g 6
Samuel Williams s****s@o****z 6
Omer Bar-or g****b@o****g 4
Akira Ikeda a****8@g****m 4
Johannes Barre i****l@i****t 4
naquad n****d@g****m 4
Antonio Terceiro a****a@t****z 3
Pawel Smolinski p****l@o****m 3
Bryan Goldstein b****o@g****m 2
Elaine Osbourn k****e@g****m 2
Jan Sandbrink n****e@g****m 2
Mamoru TASAKA m****a@f****g 2
Marcelo Boeira me@m****m 2
Matthew Schoolmaster s****r@g****m 2
Mikael Muszynski l****d@g****m 2
Xiaoming x****g@c****m 2
Marco Godínez m****m 1
and 34 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 19 days ago

Total issues: 105
Total pull requests: 429
Average time to close issues: over 2 years
Average time to close pull requests: 6 days
Total issue authors: 80
Total pull request authors: 10
Average comments per issue: 3.65
Average comments per pull request: 0.28
Merged pull request: 385
Bot issues: 0
Bot pull requests: 9

Past year issues: 10
Past year pull requests: 57
Past year average time to close issues: 1 day
Past year average time to close pull requests: 1 day
Past year issue authors: 10
Past year pull request authors: 2
Past year average comments per issue: 2.5
Past year average comments per pull request: 0.05
Past year merged pull request: 49
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/rmagick/rmagick

Top Issue Authors

  • Watson1978 (12)
  • bf4 (6)
  • mockdeep (4)
  • jdelStrother (2)
  • fitmap (2)
  • thedrow (2)
  • mtasaka (2)
  • evanmcallaway (2)
  • ccbcreg (2)
  • paulslaby (1)
  • DalenW (1)
  • deining (1)
  • laurent-martin (1)
  • wtholt (1)
  • AsWali (1)

Top Pull Request Authors

  • Watson1978 (398)
  • dlemstra (9)
  • depfu[bot] (9)
  • mockdeep (7)
  • eregon (1)
  • mtasaka (1)
  • MSP-Greg (1)
  • graaff (1)
  • larskanis (1)
  • jdelStrother (1)

Top Issue Labels

  • ImageMagick 7 (4)
  • more-information-needed (4)
  • bug (3)
  • Windows (2)
  • performance (1)
  • question (1)

Top Pull Request Labels

  • depfu (9)
  • work-in-progress (1)

Package metadata

gem.coop: rmagick

RMagick is an interface between Ruby and ImageMagick.

  • Homepage: https://github.com/rmagick/rmagick
  • Documentation: http://www.rubydoc.info/gems/rmagick/
  • Licenses: MIT
  • Latest release: 6.1.4 (published 4 months ago)
  • Last Synced: 2025-12-08T17:01:51.704Z (1 day ago)
  • Versions: 107
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 51,031,808 Total
  • Docker Downloads: 570,281
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.493%
    • Downloads: 0.495%
    • Docker downloads count: 1.476%
  • Maintainers (2)
  • Advisories:
rubygems.org: rmagick

RMagick is an interface between Ruby and ImageMagick.

  • Homepage: https://github.com/rmagick/rmagick
  • Documentation: http://www.rubydoc.info/gems/rmagick/
  • Licenses: MIT
  • Latest release: 6.1.4 (published 4 months ago)
  • Last Synced: 2025-12-08T23:32:42.730Z (1 day ago)
  • Versions: 107
  • Dependent Packages: 652
  • Dependent Repositories: 17,453
  • Downloads: 51,037,655 Total
  • Docker Downloads: 570,281
  • Rankings:
    • Dependent packages count: 0.069%
    • Dependent repos count: 0.271%
    • Downloads: 0.471%
    • Average: 1.162%
    • Docker downloads count: 1.772%
    • Forks count: 2.17%
    • Stargazers count: 2.22%
  • Maintainers (2)
  • Advisories:
alpine-v3.18: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 5.2.0-r1 (published over 2 years ago)
  • Last Synced: 2025-12-07T21:02:45.253Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 4.778%
    • Forks count: 9.132%
    • Stargazers count: 9.98%
  • Maintainers (1)
alpine-v3.13: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 4.1.2-r1 (published almost 5 years ago)
  • Last Synced: 2025-12-07T21:02:36.127Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Stargazers count: 6.246%
    • Forks count: 6.39%
    • Average: 8.04%
    • Dependent packages count: 19.522%
  • Maintainers (1)
alpine-v3.12: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 4.1.2-r0 (published over 5 years ago)
  • Last Synced: 2025-12-07T21:02:33.998Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 5.43%
    • Stargazers count: 5.539%
    • Average: 8.109%
    • Dependent packages count: 21.468%
  • Maintainers (1)
alpine-v3.14: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 4.1.2-r1 (published over 4 years ago)
  • Last Synced: 2025-12-07T21:02:36.110Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Stargazers count: 6.398%
    • Forks count: 6.405%
    • Average: 8.621%
    • Dependent packages count: 21.681%
  • Maintainers (1)
alpine-edge: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 6.1.1-r1 (published 8 months ago)
  • Last Synced: 2025-12-07T21:02:55.219Z (3 days ago)
  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Average: 8.966%
    • Forks count: 10.015%
    • Stargazers count: 11.209%
    • Dependent packages count: 14.641%
  • Maintainers (1)
alpine-v3.15: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 4.2.3-r1 (published about 4 years ago)
  • Last Synced: 2025-12-07T21:02:47.169Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 6.685%
    • Stargazers count: 6.899%
    • Average: 9.792%
    • Dependent packages count: 25.585%
  • Maintainers (1)
alpine-v3.16: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 4.2.5-r1 (published over 3 years ago)
  • Last Synced: 2025-12-07T21:02:31.013Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 6.944%
    • Stargazers count: 7.495%
    • Average: 10.438%
    • Dependent packages count: 27.311%
  • Maintainers (1)
alpine-v3.17: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 5.1.0-r0 (published about 3 years ago)
  • Last Synced: 2025-12-07T21:02:29.264Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 8.622%
    • Stargazers count: 9.234%
    • Average: 11.278%
    • Dependent packages count: 27.254%
  • Maintainers (1)
alpine-v3.20: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 6.0.1-r0 (published over 1 year ago)
  • Last Synced: 2025-12-07T21:02:56.029Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
alpine-v3.22: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 6.1.1-r1 (published 8 months ago)
  • Last Synced: 2025-12-07T21:02:43.092Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
alpine-v3.21: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 6.0.1-r0 (published over 1 year ago)
  • Last Synced: 2025-12-07T21:02:49.388Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
alpine-v3.19: ruby-rmagick

Ruby bindings for ImageMagick

  • Homepage: https://github.com/rmagick/rmagick
  • Licenses: MIT
  • Latest release: 5.3.0-r0 (published about 2 years ago)
  • Last Synced: 2025-12-07T21:02:47.555Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)

Dependencies

rmagick.gemspec rubygems
  • pry ~> 0.14 development
  • rake-compiler ~> 1.0 development
  • rspec ~> 3.8 development
  • rspec_junit_formatter ~> 0.4.1 development
  • rubocop ~> 0.81.0 development
  • rubocop-performance ~> 1.5.2 development
  • rubocop-rspec ~> 1.38.1 development
  • simplecov ~> 0.16.1 development
  • yard ~> 0.9.24 development
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby master composite
.devcontainer/Dockerfile docker
  • ruby ${RUBY_VERSION} build
doc/package.json npm
  • prettier ^3.0.0 development
Gemfile rubygems

Score: 29.20848157942811