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 +4 -4
- data/.travis.yml +4 -7
- data/CHANGELOG.md +5 -0
- data/dragonfly_libvips.gemspec +2 -2
- data/lib/dragonfly_libvips.rb +4 -1
- data/lib/dragonfly_libvips/processors/thumb.rb +5 -1
- data/lib/dragonfly_libvips/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb5272becaed50d47840beced080aec9e92238493034bc7265507af0acac68cf
|
4
|
+
data.tar.gz: 6537b77ac0440954d20898c46a289070edf03584b5d5c52693b70ed570883f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8843482d5eba83f5d86a67db886c4bed0bf978c3bed9d4dd0c36cb9101c6cb471041fe620841e98710e0e6f72815c3f9c9744906e50ff80a6fee0465c3ae25d
|
7
|
+
data.tar.gz: 97e7e1a1b0384a49bd37a1dc472b6a4270554d383b3eafe868a97f17b8a6801fed8b274c5068cb26c655206118d456124462b7e1d7ceebaaae32e25f83f4d4ef
|
data/.travis.yml
CHANGED
@@ -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
|
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
|
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:
|
data/CHANGELOG.md
CHANGED
data/dragonfly_libvips.gemspec
CHANGED
@@ -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', '
|
22
|
+
spec.add_dependency 'ruby-vips', '~> 2.0', '< 2.0.14'
|
23
23
|
|
24
|
-
spec.add_development_dependency 'bundler', '~>
|
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'
|
data/lib/dragonfly_libvips.rb
CHANGED
@@ -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
|
-
|
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
|
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.
|
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-
|
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.
|
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.
|
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: '
|
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: '
|
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.
|
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.
|