Sagewire Logo

[ANN] RMagick 2.0.0 beta5 builds with Ruby 1.9.0

4 Message(s) by 2 Author(s) originally posted in ruby programming


From: Tim Hunter Date:   Saturday, October 27, 2007
I have 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 isn't 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]


From: Sasa Ebach Date:   Sunday, October 28, 2007
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 -point size 24 -size 200x \
caption:"This is a really long line which will hopefully wrap" \
caption_multi_line.gif

I could not find this in the documentation. (Maybe I have not 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 isn't easily possible.

-se


From: Tim Hunter Date:   Sunday, October 28, 2007
wrote in message:
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 could not find this in the documentation. (Maybe I have not 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 isn't easily
possible.
-se



This is the "caption:" image format and yes, RMagick supports it. See
http://www.simplesystems.org/RMagick/doc/imusage.html#builtin_formats.

There's not really a separate API (application programming interface)for it. You just specify "caption:" as
the prefix to the "file name" when you read the image. Normally the
"filename" is the caption text, but if it starts with an "@xxxxxxxxxxx" 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:@xxxxxxxxxxx

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 (application programming interface)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]


From: Sasa Ebach Date:   Sunday, October 28, 2007
Hi Tim,

The PHP guys can email directly if they have questions.



Thanks alot. That is very kind of you.

-se



Next Message: how modify $: permanently?



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional