lib/cloudinary/carrier_wave/process.rb in cloudinary-1.0.54 vs lib/cloudinary/carrier_wave/process.rb in cloudinary-1.0.55
- old
+ new
@@ -130,9 +130,11 @@
def format
format_processor = self.all_processors.find{|processor| processor[0] == :convert}
if format_processor
# Explicit format is given
format = Array(format_processor[1]).first
+ elsif self.transformation.include?(:format)
+ format = self.transformation[:format]
elsif self.version_name.present?
# No local format. The reset should be handled by main uploader
uploader = self.model.send(self.mounted_as)
format = uploader.format
else