Spence Akiri
2007-Jul-07 15:46 UTC
attachment_fu, temporary uploads, and RMagick manipulations
I want to provide users the option to upload images and have them manipulated with RMagick before scaling them down. The problem is, I''m not sure how to set up the controller to treat images that aren''t passed through the manipulation stage. Users: 1. upload an image with a form, through which the image is resized to something manageable with attachment_fu''s :resize_to, 2. are thereafter redirected_to to a new action where they can choose to manipulate the picture with RMagick filter(s), 3. after choosing to manipulate the image (or not), the image is scaled down further. Basically, I don''t want pictures to stay big for long, but if the user navigates away from the manipulation action, the image is never scaled- down. How do I ensure that images are scaled down a second time? Is this a job for an app-wide before_filter? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---