# RMagick: Round corner borders on images

**URL:** <https://rubytalk.org/t/rmagick-round-corner-borders-on-images/34291>\
**Category:** ruby-talk\
**Created:** [8 January 2007 10:20 UTC](https://rubytalk.org/t/rmagick-round-corner-borders-on-images/34291 "2007-01-08T10:20:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Douglas\_F\_Shearer](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@Douglas\_F\_Shearer](https://rubytalk.org/u/Douglas_F_Shearer)\
**Post date:** [8 January 2007 10:20 UTC](https://rubytalk.org/t/rmagick-round-corner-borders-on-images/34291/1 "2007-01-08T10:20:14Z")

</div>

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-talk/137315](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/137315)  
but was unable to get it to work. :o(

Anyone done this before and have any tips?

Cheers.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Bonhote\_Andre](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Bonhote\_Andre](https://rubytalk.org/u/Bonhote_Andre)\
**Post date:** [8 January 2007 11:07 UTC](https://rubytalk.org/t/rmagick-round-corner-borders-on-images/34291/2 "2007-01-08T11:07:46Z")

</div>

Hi Douglas

> 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-talk/137315](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/137315)  
> 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é

> **···**
>
> On 08.01.2007, at 11:20, Douglas Shearer wrote:

---

<div class="post-metadata">

**Author:** ![Douglas\_F\_Shearer](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@Douglas\_F\_Shearer](https://rubytalk.org/u/Douglas_F_Shearer)\
**Post date:** [9 January 2007 10:23 UTC](https://rubytalk.org/t/rmagick-round-corner-borders-on-images/34291/3 "2007-01-09T10:23:44Z")

</div>

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-forum.com/\](http://www.ruby-forum.com/%5C).
