dragonfly_libvips 2.3.2 → 2.3.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: 5b67fa92ee376b9403bfce1ba81ebb1481ce966f0b388497df415c40f377c1c8
4
- data.tar.gz: 3bfda08f15466387a2ff219afc743c86c1bb2e14130dbfbd0f4a5977ace4bf43
3
+ metadata.gz: cb5272becaed50d47840beced080aec9e92238493034bc7265507af0acac68cf
4
+ data.tar.gz: 6537b77ac0440954d20898c46a289070edf03584b5d5c52693b70ed570883f54
5
5
  SHA512:
6
- metadata.gz: 577724d26ca7bf044820bab3659bd0becaf53fa1e21d0a9a1173d94c5bd003a3d0be48d931656ef554abf4b38c157bbae432771b5c6e7cbe48022fcc5e5e750d
7
- data.tar.gz: '01784f6e6e9c1c562d1144106ec9eac5709565d81ab7cfd61872af5464b4a61e34297a558ed9274e446b1e4c02280da6319d0b1c46416f5275be25f51fb35711'
6
+ metadata.gz: c8843482d5eba83f5d86a67db886c4bed0bf978c3bed9d4dd0c36cb9101c6cb471041fe620841e98710e0e6f72815c3f9c9744906e50ff80a6fee0465c3ae25d
7
+ data.tar.gz: 97e7e1a1b0384a49bd37a1dc472b6a4270554d383b3eafe868a97f17b8a6801fed8b274c5068cb26c655206118d456124462b7e1d7ceebaaae32e25f83f4d4ef
@@ -1,6 +1,7 @@
1
1
  # libvips build instructions taken from https://github.com/marcbachmann/dockerfile-libvips
2
2
 
3
3
  language: ruby
4
+ cache: bundler
4
5
  script: 'bundle exec rake'
5
6
  sudo: required
6
7
  dist: trusty
@@ -8,16 +9,12 @@ rvm:
8
9
  - 2.6.1
9
10
 
10
11
  before_install:
11
- - gem install bundler -v 1.12.5
12
+ - gem update bundler
12
13
  - sudo apt-get update
13
14
  - sudo apt-get install -y gobject-introspection libgirepository1.0-dev libglib2.0-dev libpoppler-glib-dev libgif-dev
14
- - curl -OL https://imagemagick.org/download/ImageMagick.tar.gz
15
- - tar xvzf ImageMagick.tar.gz && cd ImageMagick-7.0.8-27 && ./configure --with-modules=yes && sudo make && sudo make install
16
- - sudo ldconfig
17
- - cd ./..
18
- - export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.0/
19
15
  - curl -OL https://github.com/libvips/libvips/releases/download/v8.7.4/vips-8.7.4.tar.gz
20
- - tar xvf vips-8.7.4.tar.gz && cd vips-8.7.4 && ./configure $1 && sudo make && sudo make install
16
+ - tar zxvf vips-8.7.4.tar.gz && cd vips-8.7.4 && ./configure $1 && sudo make && sudo make install
17
+ - export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.0/
21
18
  - sudo ldconfig
22
19
 
23
20
  notifications:
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.3.3
4
+
5
+ * locks `ruby-vips` to `< 2.0.14`
6
+ * adds support for `libvips` `8.8.0`
7
+
3
8
  ## 2.3.2
4
9
 
5
10
  * FIX: support for .gif
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'dragonfly', '~> 1.0'
22
- spec.add_dependency 'ruby-vips', '~> 2.0', '>= 2.0.6'
22
+ spec.add_dependency 'ruby-vips', '~> 2.0', '< 2.0.14'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 1.12'
24
+ spec.add_development_dependency 'bundler', '~> 2.0'
25
25
  spec.add_development_dependency 'rb-readline'
26
26
  spec.add_development_dependency 'guard'
27
27
  spec.add_development_dependency 'guard-minitest'
@@ -21,6 +21,9 @@ module DragonflyLibvips
21
21
  output.scan(/\.(\w{1,4})/).flatten.compact.sort.map(&:downcase).uniq
22
22
  end - %w[
23
23
  csv
24
+ fit
25
+ fits
26
+ fts
24
27
  mat
25
28
  pbm
26
29
  pfm
@@ -31,5 +34,5 @@ module DragonflyLibvips
31
34
  webp
32
35
  ]
33
36
 
34
- FORMATS_WITHOUT_PROFILE_SUPPORT = %w[bmp dz gif hdr webp]
37
+ FORMATS_WITHOUT_PROFILE_SUPPORT = %w[bmp dz gif hdr webp heic]
35
38
  end
@@ -47,7 +47,11 @@ module DragonflyLibvips
47
47
  end
48
48
 
49
49
  thumbnail_options = options.fetch('thumbnail_options', {})
50
- thumbnail_options['auto_rotate'] = input_options.fetch('autorotate', true) if content.mime_type == 'image/jpeg'
50
+ if Vips.at_least_libvips?(8, 8)
51
+ thumbnail_options['no_rotate'] = input_options.fetch('no_rotate', false) if content.mime_type == 'image/jpeg'
52
+ else
53
+ thumbnail_options['auto_rotate'] = input_options.fetch('autorotate', true) if content.mime_type == 'image/jpeg'
54
+ end
51
55
  thumbnail_options['height'] = thumbnail_options.fetch('height', dimensions.height.ceil)
52
56
  thumbnail_options['import_profile'] = CMYK_PROFILE_PATH if img.get('interpretation') == :cmyk
53
57
  thumbnail_options['size'] ||= case geometry
@@ -1,3 +1,3 @@
1
1
  module DragonflyLibvips
2
- VERSION = '2.3.2'.freeze
2
+ VERSION = '2.3.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly_libvips
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-11 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dragonfly
@@ -31,9 +31,9 @@ dependencies:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
- - - ">="
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: 2.0.6
36
+ version: 2.0.14
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,23 +41,23 @@ dependencies:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '2.0'
44
- - - ">="
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.6
46
+ version: 2.0.14
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.12'
53
+ version: '2.0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.12'
60
+ version: '2.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rb-readline
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  requirements: []
203
- rubygems_version: 3.0.1
203
+ rubygems_version: 3.0.3
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: Dragonfly analysers and processors for libvips image processing library.