Strip exif in the scaling process
This commit is contained in:
parent
0fff54e074
commit
a8104da482
1 changed files with 13 additions and 1 deletions
|
|
@ -19,15 +19,27 @@ class ProcessedImage < CarrierWave::Uploader::Base
|
|||
|
||||
version :thumb_small do
|
||||
process :resize_to_fill => [50,50]
|
||||
process :strip
|
||||
end
|
||||
version :thumb_medium do
|
||||
process :resize_to_limit => [100,100]
|
||||
process :strip
|
||||
end
|
||||
version :thumb_large do
|
||||
process :resize_to_limit => [300,300]
|
||||
process :strip
|
||||
end
|
||||
|
||||
version :scaled_full do
|
||||
process :resize_to_limit => [700,700]
|
||||
process :strip
|
||||
end
|
||||
|
||||
def strip
|
||||
manipulate! do |img|
|
||||
img.strip
|
||||
img = yield(img) if block_given?
|
||||
img
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue