Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added compact size between 160 240

  • Loading branch information...
commit 354f2828c6511959391338fef656c9e028ad2b44 1 parent b2ee0a3
@tobi authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/transformations/sizes.rb
View
4 lib/transformations/sizes.rb
@@ -14,6 +14,10 @@
image.change_geometry("100x100>") { |x, y, image| image.resize!(x,y) }
end
+Transformations.register :compact do |image|
+ image.change_geometry("160x160>") { |x, y, image| image.resize!(x,y) }
+end
+
Transformations.register :medium do |image|
image.change_geometry("240x240>") { |x, y, image| image.resize!(x,y) }
end
Please sign in to comment.
Something went wrong with that request. Please try again.