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.
@@ -210,10 +210,11 @@ module InsanoImageResizer
210
210
 
211
211
  # find the EXIF values
212
212
  orientation = 0
213
- if input_path[-3..-1] == 'jpg'
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insano_image_resizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: