Bitmap manipulation

I would normally use FreeImage, but I cannot find a Ruby wrapper for
this?

So if I can't find a wrapper for FreeImage is there any other suitable
libraries that I can use with Ruby?

Thanks,
Jim.

···

--
Posted via http://www.ruby-forum.com/.

http://seattlerb.rubyforge.org/ImageScience.html

appears to wrap FreeImage.

···

On 2/16/07, Jim Bob <james_b@anytimenow.com> wrote:

I would normally use FreeImage, but I cannot find a Ruby wrapper for
this?

So if I can't find a wrapper for FreeImage is there any other suitable
libraries that I can use with Ruby?

Thanks,
Jim.

Jim Bob wrote:

I would normally use FreeImage, but I cannot find a Ruby wrapper for
this?

So if I can't find a wrapper for FreeImage is there any other suitable
libraries that I can use with Ruby?

Thanks,
Jim.

http://seattlerb.rubyforge.org/ImageScience.html

···

--
Posted via http://www.ruby-forum.com/\.

No ImageScience uses Free Image but does not expose much of it, it
appears to be a simple lib for creating thumbnails.

Thanks,
Jim.

···

--
Posted via http://www.ruby-forum.com/.

If you have ImageMagick or GraphicsMagick available, RMagick...
http://rmagick.rubyforge.org/

···

On 2/16/07, Jim Bob <james_b@anytimenow.com> wrote:

No ImageScience uses Free Image but does not expose much of it, it
appears to be a simple lib for creating thumbnails.

Thanks,
Jim.

have u tried RMagick ?

i found it very useful, a lots of functionality easy to implement.

Thumbnail can be made really easily with RMagick.

I am using RMagick in my rails based captcha plugin SimpleCaptcha(
http://expressica.com/2007/02/06/simple-captcha-released-the-captcha-for-rails-applications/\)
and its working absolutely fine.

···

On 2/16/07, Jim Bob <james_b@anytimenow.com> wrote:

No ImageScience uses Free Image but does not expose much of it, it
appears to be a simple lib for creating thumbnails.

Thanks,
Jim.

--
Posted via http://www.ruby-forum.com/\.

--
sur
http://expressica.com

Rmagic looks like it will work a treat.

Many thanks again,
Jim.

···

--
Posted via http://www.ruby-forum.com/.

example to generate THUMBNAIL using RMagick

···

======================================
require 'RMagick'
include Magick

img = Image.read("image/path/my_image.jpg").first
thumb_img = img.thumbnail(50, 50)

thumb_img.write("image/path/my_image_thuumb.jpg")

=======================================
check out more details here
http://www.simplesystems.org/RMagick/doc/image3.html#thumbnail

On 2/16/07, Jim Bob <james_b@anytimenow.com> wrote:

Rmagic looks like it will work a treat.

Many thanks again,
Jim.

--
Posted via http://www.ruby-forum.com/\.

--
sur
http://expressica.com