# RMagick 1.11.0

**URL:** <https://www.ruby-forum.com/t/rmagick-1-11-0/94753>\
**Category:** Ruby\
**Created:** [May 12, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/rmagick-1-11-0/94753 "2006-05-12T23:59:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim-hunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Post date:** [May 12, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/rmagick-1-11-0/94753/1 "2006-05-12T23:59:26Z")

</div>

\*\*\*\* RubyGem users on Linux, \*BSD, OS X please read the note at the  
end. \*\*\*\*

I’ve just uploaded RMagick 1.11.0 to RubyForge. This release contains an  
important bug fix and some nice new features. Here’s the changes:

o Robert Manni’s Image#resize\_to\_fit resizes an image to fit within  
the specified rectangle while retaining the aspect ratio.

o The new ImageList#optimize\_layers method (available with ImageMagick  
6.2.6) adds several new GIF animation optimization methods.

o The new Magick.limit\_resource method lets you specify an upper  
bound on  
the amount of certain resources (disk space, files, memory) used by  
ImageMagick.

o I replaced install.rb with the latest version of setup.rb and  
improved  
the gem installation process (bug report from Ryan D.).

o You can specify ./configure --disable-htmldoc to suppress creating  
the HTML documentation and executing all the example programs. This  
option is also available to RubyGem users by specifying the --no-  
rdoc  
option on the “gem install” command.

o The new Image#contrast\_stretch\_channel method is available with  
ImageMagick 6.2.6.

o I fixed a possible memory leak that could occur when RMagick  
raised an  
ImageMagickError exception and the program rescued it and  
continued.

RMagick is available as always on RubyForge: [http://rubyforge.org/](http://rubyforge.org/)  
projects/rmagick/

RMagick is an interface to the ImageMagick ([www.imagemagick.org](http://www.imagemagick.org)) and  
GraphicsMagick ([www.graphicsmagick.org](http://www.graphicsmagick.org)) image processing libraries. It  
supports more than 90 image formats, including GIF, JPEG, PNG. It  
includes  
RVG, a 2D drawing API. RMagick has comprehensive HTML documentation  
and comes  
with over 175 complete, working example programs.

```
    ***RubyGem users on Linux, *BSD, OS X please read this.****

```

The RMagick 1.11.0 gem is for Linux, \*BSD, OS X, Solaris, and other  
\*ix-like  
systems only. Kaspar is working on a new Win32 gem for RMagick and  
either he  
or I will announce it when it’s available. If you’re using RMagick on MS  
Windows you don’t need to read any farther. Also, if you plan on  
installing  
RMagick with the standard ./configure && make && make install, this  
doesn’t  
apply to you, either.

The new RubyGem install process in 1.11.0 fixes a mistake in previous  
releases  
that caused RMagick to be installed in the “wrong” (to RubyGems)  
directories.  
To take advantage of this fix you should completely uninstall any  
earlier  
release of RMagick installed using RubyGems before installing RMagick  
1.11.0.

You can uninstall RMagick by deleting all the files yourself, or you  
can use  
the script below. If you want to do it yourself, here’s what you need  
to do.  
(I’m assuming you’ve got a standard Ruby 1.8.x installation.)

1. Log on to an account that has the permissions necessary to delete  
files from the Ruby library directories.

2. Determine the Ruby “prefix” directory, for example, “/usr/local”. If  
you don’t know what the prefix directory is, run this command:

3. Determine the Ruby “sitearch” directory, for example “powerpc-  
darwin8.3.0”.  
If you don’t know what the sitearch directory is, run this command:

4. Run this command:

5. Run these commands:

That’s it. You’re done.

Or instead of doing that you can use this script. Run it from an  
account that  
has the appropriate permissions.

—CUT  
HERE-------------------------------------------------------------------

# Completely uninstall all versions of RMagick

require ‘rbconfig’  
require ‘fileutils’

include FileUtils::Verbose

sitelibdir = Config::CONFIG[‘sitelibdir’]  
sitearchdir = Config::CONFIG[‘sitearchdir’]  
datadir = Config::CONFIG[‘datadir’]  
dlext = Config::CONFIG[‘DLEXT’]  
bindir = Config::CONFIG[‘bindir’]

uninstall = “#{File.join(bindir, ‘ruby’)} #{File.join(bindir, ‘gem’)}” +  
" uninstall rmagick --all"

puts uninstall  
puts %x[#{uninstall}]

# Delete the Ruby files

rm File.join(sitelibdir, “RMagick.rb”) rescue nil  
rm\_rf File.join(sitelibdir, “rvg”) rescue nil

# Delete the RMagick binary

rm File.join(sitearchdir, “RMagick.” + dlext) rescue nil

# Delete the HTML documentation

rm\_rf File.join(datadir, “RMagick”) rescue nil

* * *

## END---------------------------------------------------------------------
