# Graphics rendering

**URL:** <https://www.ruby-forum.com/t/graphics-rendering/54340>\
**Category:** Rails\
**Created:** [March 1, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/graphics-rendering/54340 "2006-03-01T21:53:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rebecca\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@Rebecca\_C](https://www.ruby-forum.com/u/Rebecca_C)\
**Post date:** [March 1, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/graphics-rendering/54340/1 "2006-03-01T21:53:30Z")

</div>

Hey

Has anyone got a graphics server running alongside ruby on rails? Kind  
of new to graphics rendering on a web server, so some general tips on a  
successful direction to go in would be great. I need it for automatic  
rescaling of images, similar to flickr.

Thanks,

RGC

---

<div class="post-metadata">

**Author:** ![Rebecca\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@Rebecca\_C](https://www.ruby-forum.com/u/Rebecca_C)\
**Post date:** [March 1, 2006, 10:28pm UTC](https://www.ruby-forum.com/t/graphics-rendering/54340/2 "2006-03-01T22:28:03Z")

</div>

Rebecca C. wrote:

> Hey
> 
> Has anyone got a graphics server running alongside ruby on rails? Kind  
> of new to graphics rendering on a web server, so some general tips on a  
> successful direction to go in would be great. I need it for automatic  
> rescaling of images, similar to flickr.  
> (  
> Thanks,
> 
> RGC

Have you looked at ImageMagic  
([ImageMagick – Convert, Edit, or Compose Digital Images](http://www.imagemagick.org/script/index.php)) and rmagick  
([ImageMagick – Convert, Edit, or Compose Digital Images](http://www.imagemagick.org/script/index.php))?

Rmagick is ruby bindings for imagemagick.

Works great.

Gareth

---

<div class="post-metadata">

**Author:** ![Rebecca\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@Rebecca\_C](https://www.ruby-forum.com/u/Rebecca_C)\
**Post date:** [March 1, 2006, 10:34pm UTC](https://www.ruby-forum.com/t/graphics-rendering/54340/3 "2006-03-01T22:34:57Z")

</div>

Rebecca

```
> I need it for automatic rescaling of images, similar to flickr.

```

As indicated higher in the thread, the file\_column plugin is a  
no-brainer when it comes to resizing with RMagic.  
You only have to make sure that the original is not smaller than the  
target size (like resizing 16x16 =\> 100x100). It works - no crash or  
error -, but it doesn’t make sense, and the resulting mozaic is ugly.

An alternative is to resize in the browser with javascript.  
Example:

[http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-javascript/](http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-javascript/)

(note: look for the slider just above the pictures. It is not very  
visible in Safari.)

Alain

---

<div class="post-metadata">

**Author:** ![Rebecca\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@Rebecca\_C](https://www.ruby-forum.com/u/Rebecca_C)\
**Post date:** [March 2, 2006, 1:37am UTC](https://www.ruby-forum.com/t/graphics-rendering/54340/4 "2006-03-02T01:37:31Z")

</div>

Try ImageMagick. It is a set of command line utitlities, and  
I think there is a rails implementation. If not, you can always  
exec the appropriate commands. Mogrify is probably the command  
line version you are looking for.

On 3/1/06, Rebecca C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Topher Fangio  
removed\_email\_address@domain.invalid  
[http://www.fangiotophia.com](http://www.fangiotophia.com)

Website Specialist  
Fangiotophia Designs  
(325) 660-7141
