[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RMagick: Round corner borders on images.

dougal.s

1/8/2007 10:20:00 AM

Hi there.

I'm trying to create rounded corners on images. I looked at the script
at: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-t...
but was unable to get it to work. :o(

Anyone done this before and have any tips?

Cheers.

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

2 Answers

Bonhôte André

1/8/2007 11:08:00 AM

0

Hi Douglas

On 08.01.2007, at 11:20, Douglas Shearer wrote:

> I'm trying to create rounded corners on images. I looked at the
> script
> at: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-t...
> but was unable to get it to work. :o(

I am very, very new to ruby, but I guess I know what went wrong on
your side. I bet you tried to save it as jpeg file. Try to do
something like

thumb.write('rounded.png')

Works fine here.

HTH & HAND

André



dougal.s

1/9/2007 10:24:00 AM

0

Bonhôte André wrote:

> I bet you tried to save it as jpeg file.

Yup, I was! Thanks very much for that! :o)

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