Skip to content

Instantly share code, notes, and snippets.

@amasses
Created October 9, 2009 16:19
Show Gist options
  • Save amasses/206145 to your computer and use it in GitHub Desktop.
Save amasses/206145 to your computer and use it in GitHub Desktop.
module Paperclip
class Rotator < Thumbnail
def transformation_command
if rotate_command
super + rotate_command
else
super
end
end
def rotate_command
target = @attachment.instance
if target.rotating?
" -rotate #{target.rotation}"
end
end
end
end
@miguelrebola21
Copy link

is anyone with this lib yet? My image is not updating, yet it gives no error... And the image gets broken...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment