Forum: Ruby on Rails attachment_fu, temporary uploads, and RMagick manipulations

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Spence Akiri (Guest)
on 2007-07-07 19:47
(Received via mailing list)
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.

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-

How do I ensure that images are scaled down a second time?
Is this a job for an app-wide before_filter?
This topic is locked and can not be replied to.