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
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) and rmagick
(ImageMagick – Convert, Edit, or Compose Digital Images)?
Rmagick is ruby bindings for imagemagick.
Works great.
Gareth
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
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. [email protected] wrote:
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
Topher Fangio
[email protected]
http://www.fangiotophia.com
Website Specialist
Fangiotophia Designs
(325) 660-7141