forked from bofh/fetsite
FIX: thumbnail size reduced by stripping all EXIF information
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
module CarrierWave
|
||||
module RMagick
|
||||
|
||||
# Manipulates quality settings of image
|
||||
def quality(percentage)
|
||||
manipulate! do |img|
|
||||
img.write(current_path){ self.quality = percentage } unless img.quality == percentage
|
||||
@@ -9,5 +10,14 @@ module CarrierWave
|
||||
end
|
||||
end
|
||||
|
||||
# Strips out all EXIF information
|
||||
def strip
|
||||
manipulate! do |img|
|
||||
img.strip!
|
||||
img = yield(img) if block_given?
|
||||
img
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user