Skip to content

Instantly share code, notes, and snippets.

@leofrozenyogurt
Created August 28, 2014 15:46
Show Gist options
  • Save leofrozenyogurt/da17009819148ea86f78 to your computer and use it in GitHub Desktop.
Save leofrozenyogurt/da17009819148ea86f78 to your computer and use it in GitHub Desktop.
process :auto_orient # this should go before all other "process" steps
def auto_orient
manipulate! do |image|
image.tap(&:auto_orient)
end
end
process :resize_to_fit => [400, 400]
version :thumb do
process :resize_to_fill => [200,200]
end
# version :ninty do
# process :rotate90
#end
# version :one80 do
# process :rotate180
#end
# version :two70 do
#process :rotate270
#end
#def rotate90
# manipulate! do |image|
# image.rotate(90)
#end
#end
#def rotate180
# manipulate! do |image|
# image.rotate(180)
#end
#end
#def rotate270
# manipulate! do |image|
# image.rotate(270)
# end
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment