Graphics rendering


#1

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


#2

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
(http://www.imagemagick.org/script/index.php) and rmagick
(http://www.imagemagick.org/script/index.php)?

Rmagick is ruby bindings for imagemagick.

Works great.

Gareth


#3

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/

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

Alain


#4

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 wrote:


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Topher Fangio
removed_email_address@domain.invalid
http://www.fangiotophia.com

Website Specialist
Fangiotophia Designs
(325) 660-7141