local-fastimage 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 547d7024c4428e2314dd4ae8fe701d6baf57a4d0e735ab3b7d522e65b518be0e
4
- data.tar.gz: b49ddf7062d328e10a91effc60e8965973d651371de7a3e1e63fd9dba983f37d
3
+ metadata.gz: 2302e6975dcaf2683a11cab33506ba5ea5ba0a32c8c81c33e3c75ef99553eea4
4
+ data.tar.gz: 2000d9b19e5421d398bea8ba1006e655b3cdeb32db81d88f8253d2b865285c52
5
5
  SHA512:
6
- metadata.gz: 3b055c6d724144c030c40bfa41fd2dcec29d527abbc71ac7538b481793986799d789790d9c4dc87591b3e7c625af822aca7c82423ad467f9db0041bcb92320d5
7
- data.tar.gz: dc32631985b2332164e0cdac9bbc9d2fec7d8605f54cafc1444c2ef16a42aba4b7c324b9d5501ac202b361502fd73f28046ac0e4ae718a8afbc1f24ac4a07bdf
6
+ metadata.gz: d8d4fe6b720fd3338284d56c812272ae6e884d7b38c027217ff0daf98709252a1d402648d9ea4d938b452330150811bfe3ab10e5d6bc85a8cb18e280daa08c5b
7
+ data.tar.gz: a3f711fe62a0fff78b311eacebc9d66f668684b6d0c29dfb32cb91e1a4197af71275750d994da9c82f13740a8fa5ccae7f4bb188b1a032b007f5898568b8ddff
@@ -1,3 +1,9 @@
1
+ # 3.1.1 - 2018-05-02
2
+
3
+ Bug fix
4
+
5
+ * Fix orientation for certain JPEG images
6
+
1
7
  # 3.1.0 - 2018-04-24
2
8
 
3
9
  Updates code to match fastimage v2.1.1
@@ -372,7 +372,8 @@ class FastImage
372
372
  io = StringIO.new(data)
373
373
  if io.read(4) == "Exif"
374
374
  io.read(2)
375
- exif = Exif.new(IOStream.new(io)) rescue nil
375
+ new_exif = Exif.new(IOStream.new(io)) rescue nil
376
+ exif ||= new_exif # only use the first APP1 segment
376
377
  end
377
378
  :started
378
379
  when 0xe0..0xef
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class FastImage
4
- VERSION = "3.1.0"
4
+ VERSION = "3.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local-fastimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Sykes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-24 00:00:00.000000000 Z
12
+ date: 2018-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler