Forum: Ruby bitmap manipulation

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ff3635572d361dae487231cef1e726c1?d=identicon&s=25 Jim Bob (jimbob)
on 2007-02-16 16:47
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.
05e48e632fdd0b2c25d27042f52c11d5?d=identicon&s=25 Alex LeDonne (Guest)
on 2007-02-16 16:53
(Received via mailing list)
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.

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

appears to wrap FreeImage.
B33ea5c12d767bfd1253940a960274f5?d=identicon&s=25 Tim Hunter (timhunter)
on 2007-02-16 16:53
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
Ff3635572d361dae487231cef1e726c1?d=identicon&s=25 Jim Bob (jimbob)
on 2007-02-16 17:18
No ImageScience uses Free Image but does not expose much of it, it
appears to be a simple lib for creating thumbnails.

Thanks,
Jim.
05e48e632fdd0b2c25d27042f52c11d5?d=identicon&s=25 Alex LeDonne (Guest)
on 2007-02-16 17:45
(Received via mailing list)
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.
>

If you have ImageMagick or GraphicsMagick available, RMagick...
http://rmagick.rubyforge.org/
Ce43b11af679aaa142f5ba7e35e64c4b?d=identicon&s=25 sur max (Guest)
on 2007-02-16 17:46
(Received via mailing list)
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-re...)
and its working absolutely fine.
Ff3635572d361dae487231cef1e726c1?d=identicon&s=25 Jim Bob (jimbob)
on 2007-02-16 17:57
Rmagic looks like it will work a treat.

Many thanks again,
Jim.
Ce43b11af679aaa142f5ba7e35e64c4b?d=identicon&s=25 sur max (Guest)
on 2007-02-16 18:05
(Received via mailing list)
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.ht...
This topic is locked and can not be replied to.