local-fastimage 3.1.2 → 3.1.3

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: 1547c022ef7ecf63767023a8bd24bcb016e2c1bff24ccb7193d6b8f88f3339c9
4
- data.tar.gz: f4bb71ea12774d813126d89211040f10e85d82c2e51befda28e28b9a00793339
3
+ metadata.gz: 305fc175fcfb3f85533e6fcbabbd5a30dcf14be3f86abeb116fef35cf9aecd5a
4
+ data.tar.gz: 905bd8afb6ef63f32e9a20e3cbae9a6d7edb60ddc2f6306a2438847728d2f0a4
5
5
  SHA512:
6
- metadata.gz: 228a4a7378de4d7587ba305ffb6119ebef3c882ae62f129747599177bc17cd6d8b75a43bf94325b59961b0da2d333d7b68c564870e03ed12e07ce3533be6bac2
7
- data.tar.gz: 8ad4d3bddf74a2fbccde5c9b33b199ab7b925e9d9412769196816d0cc4327f761d349f7b9bcf5fbc028c73cda86a04223bfc2e40c4fbc968ee2d7b09c815af19
6
+ metadata.gz: b2d6599f0373fcb2fa2d2addb561b5a15029265915deeb930cb24636995e2736adbe13325e732518d2af5a5d6baf41dd8ff69fe6368f86fbc6bd6332064d98c3
7
+ data.tar.gz: 7a59890f23f9355972ec30ba71157139a1ff07e01694965325d8f2b5922e25dc1b40f2e273432f5569344ca50f71ebb00e059ad21e718cb840a1ddd694c2c129
@@ -1,3 +1,9 @@
1
+ # 3.1.3 - 2018-09-10
2
+
3
+ Bug fix
4
+
5
+ * Don't treat CR2 and CRW as TIFF - https://github.com/sdsykes/fastimage/issues/104
6
+
1
7
  # 3.1.2 - 2018-05-09
2
8
 
3
9
  Bug fix
@@ -315,7 +315,12 @@ class FastImage
315
315
  when 0x89.chr + "P"
316
316
  :png
317
317
  when "II", "MM"
318
- :tiff
318
+ case @stream.peek(11)[8..10]
319
+ when "APC", "CR\002"
320
+ nil # do not recognise CRW or CR2 as tiff
321
+ else
322
+ :tiff
323
+ end
319
324
  when '8B'
320
325
  :psd
321
326
  when "\0\0"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class FastImage
4
- VERSION = "3.1.2"
4
+ VERSION = "3.1.3"
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.2
4
+ version: 3.1.3
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-05-09 00:00:00.000000000 Z
12
+ date: 2018-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler