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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/93067915/attachment.html
Look at file_column, a great plugin that works with RMagick. I use it to rescale images upon uploads. It works great! http://www.kanthak.net/opensource/file_column/ Brian Hogan Web Development Learning & Technology Services Schofield 3-B University of Wisconsin-Eau Claire 715 836 3585 hoganbp@uwec.edu -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Rebecca Cannon Sent: Wednesday, March 01, 2006 2:52 PM To: rails@lists.rubyonrails.org Subject: [Rails] graphics rendering 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/5ee79f02/attachment.html
Rebecca Cannon 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, > > RGCHave 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 -- Posted via http://www.ruby-forum.com/.
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 Cannon <rebecca@artarkive.com> 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 > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Topher Fangio fangiotophia@gmail.com http://www.fangiotophia.com Website Specialist Fangiotophia Designs (325) 660-7141