dragonfly_libvips 2.4.0 → 2.5.0

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: c1d8704fd9ff1232cc9c6d7ee96f254823b35b08d47a2f4652ecdd2c871adf30
4
- data.tar.gz: f901f9e4b8e36147a33fa59745d38d1d64904a7d7d2d3594529e85a0a398b091
3
+ metadata.gz: 1d406440d81b35a36ff76d957aec2605e79caf29faac9df5225d91eb0a29ae9a
4
+ data.tar.gz: e33e09b0c99cdc864b082c32f0c459fd7a6c5775b0eeff9534e6ff33a0e91650
5
5
  SHA512:
6
- metadata.gz: dc289e762b526da8fcf8d16acf8464ce42e55122be0b24a07858127c8ddbbe6b217ba42ecd3dadc4867b2b2c8ab25b7ba1ee34257091ced5f05c9922adc41a99
7
- data.tar.gz: 52f53405a530bf31cdf196cb647b1cfeba0bff6e4bda7489d751f1e071fed36f7ae87196c19be0d68e0cf7790fd2a5c6f198764502fbb48d66fd670961b9dd80
6
+ metadata.gz: d43526ee56067f3d44f9f5af1a83b2be59e1e48b3dabca86d96503710b83483c8a7369d5f928978ca358c7610e890ae62501853d5f889451717ff0f390bb9702
7
+ data.tar.gz: 04daf214847dc14d7686d85fbeaaa0eefea256cd429ac1a9912e16cfcc5c87d384b5b065b9f0e208ca740bfed5cd07c673f89ecb36ed3a71d7f4dda9343d3b96
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.5.0
4
+
5
+ * Fix ruby 3.0+ compatibility by @Bartuz
6
+
7
+ ## 2.4.2
8
+
9
+ * Add `webp` as supported format, and `aviz` and `heif` to formats without profile support (#14) by @asgerb
10
+
11
+ ## 2.4.1
12
+
13
+ * Fix misspelled UnsupportedOutputFormat (#13) by @asgerb
14
+ * Fix broken links in README (#12) by @NARKOZ
15
+
3
16
  ## 2.4.0
4
17
 
5
18
  * symbolize `input_options` and `output_options` to avoid argument errors coming from `ruby-vips`
data/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/tomasc/dragonfly_libvips.svg)](https://travis-ci.org/tomasc/dragonfly_libvips) [![Gem Version](https://badge.fury.io/rb/dragonfly_libvips.svg)](http://badge.fury.io/rb/dragonfly_libvips) [![Coverage Status](https://img.shields.io/coveralls/tomasc/dragonfly_libvips.svg)](https://coveralls.io/r/tomasc/dragonfly_libvips)
4
4
 
5
- Dragonfly analysers and processors for [libvips](https://github.com/jcupitt/libvips) image processing library
5
+ Dragonfly analysers and processors for [libvips](https://github.com/libvips/libvips) image processing library
6
6
 
7
7
  From the libvips README:
8
8
 
9
- > libvips is a 2D image processing library. Compared to similar libraries, [libvips runs quickly and uses little memory](http://www.vips.ecs.soton.ac.uk/index.php?title=Speed_and_Memory_Use). libvips is licensed under the LGPL 2.1+.
9
+ > libvips is a 2D image processing library. Compared to similar libraries, [libvips runs quickly and uses little memory](https://github.com/libvips/libvips/wiki/Speed-and-memory-use). libvips is licensed under the LGPL 2.1+.
10
10
 
11
11
  ## Installation
12
12
 
@@ -34,7 +34,7 @@ If you run into trouble installing `libvips` with Ruby introspection on Linux, f
34
34
 
35
35
  ## Dependencies
36
36
 
37
- The [vips](http://www.vips.ecs.soton.ac.uk/index.php?title=Supported) library and its [dependencies](https://github.com/jcupitt/libvips#dependencies).
37
+ The [vips](http://www.vips.ecs.soton.ac.uk/index.php?title=Supported) library and its [dependencies](https://github.com/libvips/libvips#dependencies).
38
38
 
39
39
  ## Usage
40
40
 
@@ -14,7 +14,7 @@ module DragonflyLibvips
14
14
  input_options['autorotate'] = true if content.mime_type == 'image/jpeg'
15
15
  input_options['dpi'] = DPI if content.mime_type == 'application/pdf'
16
16
 
17
- img = ::Vips::Image.new_from_file(content.path, DragonflyLibvips.symbolize_keys(input_options))
17
+ img = ::Vips::Image.new_from_file(content.path, **DragonflyLibvips.symbolize_keys(input_options))
18
18
 
19
19
  width = img.width
20
20
  height = img.height
@@ -1,3 +1,3 @@
1
1
  module DragonflyLibvips
2
- VERSION = '2.4.0'.freeze
2
+ VERSION = '2.5.0'.freeze
3
3
  end
@@ -6,7 +6,7 @@ require 'vips'
6
6
 
7
7
  module DragonflyLibvips
8
8
  class UnsupportedFormat < RuntimeError; end
9
- class UnsupportedOutputormat < RuntimeError; end
9
+ class UnsupportedOutputFormat < RuntimeError; end
10
10
 
11
11
  CMYK_PROFILE_PATH = File.expand_path('../vendor/cmyk.icm', __dir__)
12
12
  EPROFILE_PATH = File.expand_path('../vendor/sRGB_v4_ICC_preference.icc', __dir__)
@@ -31,10 +31,9 @@ module DragonflyLibvips
31
31
  ppm
32
32
  v
33
33
  vips
34
- webp
35
34
  ]
36
35
 
37
- FORMATS_WITHOUT_PROFILE_SUPPORT = %w[bmp dz gif hdr webp heic]
36
+ FORMATS_WITHOUT_PROFILE_SUPPORT = %w[avif bmp dz gif hdr webp heic heif]
38
37
 
39
38
  private
40
39
 
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.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-03 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dragonfly