insano_image_resizer 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/insano_image_resizer/processor.rb +4 -3
- metadata +1 -1
@@ -210,10 +210,11 @@ module InsanoImageResizer
|
|
210
210
|
|
211
211
|
# find the EXIF values
|
212
212
|
orientation = 0
|
213
|
-
|
214
|
-
orientation = EXIFR::JPEG.new(input_path).orientation.to_i
|
213
|
+
begin
|
214
|
+
orientation = EXIFR::JPEG.new(input_path).orientation.to_i
|
215
|
+
rescue
|
216
|
+
orientation = 0
|
215
217
|
end
|
216
|
-
log.debug('Orientation flag: ' + orientation.to_s)
|
217
218
|
|
218
219
|
if orientation == 3 || orientation == 6 || orientation == 8
|
219
220
|
FileUtils.mv(output_path, intermediate_path)
|