lib/carrierwave/processing/mini_magick.rb in carrierwave-1.2.1 vs lib/carrierwave/processing/mini_magick.rb in carrierwave-1.2.2
- old
+ new
@@ -301,9 +301,10 @@
image = yield(image)
image.write(current_path)
if @format
move_to = current_path.chomp(File.extname(current_path)) + ".#{@format}"
+ file.content_type = ::MIME::Types.type_for(move_to).first.to_s
file.move_to(move_to, permissions, directory_permissions)
end
image.run_command("identify", current_path)
ensure