Attachment Fu Skip Resize plugin

Plugin details

This plugin gives attachment_fu the ability to bypass resizing of your full-size original image. This is useful when you want to make use of automatic :resize_to scaling on your image class, but only after the user performs a recentering, crop or other manual operation on a higher resolution saved image. This solves a key issue with Kropper, where the image is usually auto-scaled down, saved, manually cropped, and then scaled in a *lossy* manner back up to the defined :resize_to resolution.

Websitehttp://www.prestonlee.com/archives/147 Repositoryhttps://svn.openrain.com/opensource/public/rails/plugins/attachment_fu_skip_resize Author Preston Lee Tags attachment_fu, Images, Resize LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install https://svn.openrain.com/opensource/public/rails/plugins/attachment_fu_skip_resize

In your attachment_fu image class, add..

attr_accessor :skip_resize



Any time you want to save an image *without* invoking resizing on the original image..

image.skip_resize = true
image.save



Thumbnails will be generated at their defined resolutions regardless of the skip_resize flag.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 6 months ago