app/models/spina/image.rb in spina-1.0.3 vs app/models/spina/image.rb in spina-1.1.0

- old
+ new

@@ -19,8 +19,17 @@ end def content self end - + + def thumbnail(size = '100x100', modifier = '^') + variant( + combine_options: { + gravity: 'center', + thumbnail: "#{size}#{modifier}", + extent: size + } + ) + end end end