Forum: Ruby on Rails graphics rendering

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C7e532af3dd4b97b9b4f7cdaa56ab889?d=identicon&s=25 Rebecca Cannon (Guest)
on 2006-03-01 21:53
(Received via mailing list)
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
Aa575b7606897a056f073f0f148804dd?d=identicon&s=25 Gareth Reeves (Guest)
on 2006-03-01 22:28
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,
>
> 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
0091f92762685860109bbcb02edfdf27?d=identicon&s=25 Alain Ravet (Guest)
on 2006-03-01 22:34
(Received via mailing list)
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/iphot...

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

Alain
9dda75d7ad467bf2a22de8a9d695a2dd?d=identicon&s=25 Toph (Guest)
on 2006-03-02 01:37
(Received via mailing list)
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:
>
> _______________________________________________
> 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
This topic is locked and can not be replied to.