[ANN] RMagick 2.0.0 beta5 builds with Ruby 1.9.0

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.

This beta release is not available as a RubyGem.

RMagick 2.0.0 is available as always from RubyForge: 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) 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.

--
RMagick OS X Installer [http://rubyforge.org/projects/rmagick/]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618]
RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]

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

Sasa Ebach wrote:

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

This is the "caption:" image format and yes, RMagick supports it. See RMagick 1.15.0: ImageMagick/GraphicsMagick Conventions.

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.

···

--
RMagick OS X Installer [http://rubyforge.org/projects/rmagick/\]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618\]
RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html\]

Hi Tim,

The PHP guys can email directly if they have questions.

Thanks alot. That is very kind of you.

-se