retina_rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/retina_rails/carrierwave.rb +5 -1
- data/lib/retina_rails/version.rb +1 -1
- metadata +1 -1
@@ -63,7 +63,11 @@ module RetinaRails
|
|
63
63
|
def retina_quality(percentage)
|
64
64
|
if version_name.to_s.include?('retina')
|
65
65
|
manipulate! do |img|
|
66
|
-
|
66
|
+
if defined?(Magick)
|
67
|
+
img.write(current_path) { self.quality = percentage } unless img.quality == percentage
|
68
|
+
elsif defined?(MiniMagick)
|
69
|
+
img.quality(percentage.to_s)
|
70
|
+
end
|
67
71
|
img = yield(img) if block_given?
|
68
72
|
img
|
69
73
|
end
|
data/lib/retina_rails/version.rb
CHANGED