# RMagick 2.0.0 beta5 builds with Ruby 1.9.0

**URL:** <https://www.ruby-forum.com/t/rmagick-2-0-0-beta5-builds-with-ruby-1-9-0/118506>\
**Category:** Ruby\
**Created:** [October 27, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/rmagick-2-0-0-beta5-builds-with-ruby-1-9-0/118506 "2007-10-27T23:33:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 27, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/rmagick-2-0-0-beta5-builds-with-ruby-1-9-0/118506/1 "2007-10-27T23:33:31Z")

</div>

I’ve just uploaded RMagick 2.0.0 beta5. This beta release can be built  
with the latest rev of Ruby 1.9.0.

## RMagick 2.0.0 Highlights

o New installation uses setup.rb exclusively  
o Requires Ruby 1.8.2 or later  
o Requires ImageMagick 6.3.0 or later  
o GraphicsMagick not supported  
o New Image#destroy! method destroys individual image objects,  
making the memory available for reuse  
o New Magick.trace\_proc method helps monitor memory usage  
o Many new methods added  
o Two GraphicsMagick-only methods removed.  
o Many deprecated, outdated, and mostly undocumented methods and  
constants removed.

See the Change Log for information about new features and bug fixes  
since RMagick 1.15.10.

Please read the Release Notes before downloading. Please report problems  
to the RMagick Help Forum on RubyForge:  
[http://rubyforge.org/forum/?group\_id=12](http://rubyforge.org/forum/?group_id=12).

This beta release is not available as a RubyGem.

RMagick 2.0.0 is available as always from RubyForge:  
[http://rubyforge.org/projects/rmagick/](http://rubyforge.org/projects/rmagick/). Please wait a few hours for the  
mirrors to catch up.

RMagick 2.0.0 is an interface to the ImageMagick ([www.imagemagick.org](http://www.imagemagick.org))  
image processing library. RMagick 2.0.0 supports more than 100 image  
formats, including GIF, JPEG, and PNG, and comes with comprehensive HTML  
documentation. The RMagick home page is [http://rmagick.rubyforge.org](http://rmagick.rubyforge.org).

---

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 28, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/rmagick-2-0-0-beta5-builds-with-ruby-1-9-0/118506/2 "2007-10-28T17:35:51Z")

</div>

Hi Tim,

I have a question about RMagick. Since it uses a c-interface to  
imagemagick  
I wonder if if implements the multi-line text by? Something that can be  
done on the command-line with

convert -background lightblue -fill blue   
-font Ravie -pointsize 24 -size 200x   
caption:“This is a really long line which will hopefully wrap”  
  
caption\_multi\_line.gif

I couldn’t find this in the documentation. (Maybe I haven’t looked hard  
enough). Does RMagick do it and where can I find this in the c-source? I  
am  
asking out of interest for implementing the same thing in the  
corresponding  
module in PHP. (To be exact, to point the guys that do maintain the PHP  
module to RMagick, since they say that it is not easily possible.

-se

---

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 28, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/rmagick-2-0-0-beta5-builds-with-ruby-1-9-0/118506/3 "2007-10-28T18:30:54Z")

</div>

Sasa E. wrote:

> I couldn’t find this in the documentation. (Maybe I haven’t looked hard  
> enough). Does RMagick do it and where can I find this in the c-source? I  
> am asking out of interest for implementing the same thing in the  
> corresponding module in PHP. (To be exact, to point the guys that do  
> maintain the PHP module to RMagick, since they say that it is not easily  
> possible.
> 
> -se

This is the “caption:” image format and yes, RMagick supports it. See  
[RMagick 1.15.0: ImageMagick/GraphicsMagick Conventions](http://www.simplesystems.org/RMagick/doc/imusage.html#builtin_formats).

There’s not really a separate API for it. You just specify “caption:” as  
the prefix to the “filename” when you read the image. Normally the  
“filename” is the caption text, but if it starts with an “@” then IM’s  
ReadImage function treats it as the name of a file from which to get the  
caption string. Like this:

caption:This is my caption  
caption:@caption.txt

In C, just store “caption:whatever” into the ImageInfo.filename field,  
along with all the other attributes (background, fill, etc.) in the  
appropriate ImageInfo fields and then call ReadImage.

In RMagick this happens in the rd\_image function in rmimage.c. Tell your  
PHP guys that RMagick uses the MagickCore API. If they’re using the  
MagickWand API there are different but parallel functions.

The PHP guys can email directly if they have questions.

---

<div class="post-metadata">

**Author:** ![timhunter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/71e660/32.png) [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Post date:** [October 28, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/rmagick-2-0-0-beta5-builds-with-ruby-1-9-0/118506/4 "2007-10-28T19:18:20Z")

</div>

Hi Tim,

> The PHP guys can email directly if they have questions.

Thanks alot. That is very kind of you.

-se
