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 +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +3 -3
- data/lib/dragonfly_libvips/analysers/image_properties.rb +1 -1
- data/lib/dragonfly_libvips/version.rb +1 -1
- data/lib/dragonfly_libvips.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d406440d81b35a36ff76d957aec2605e79caf29faac9df5225d91eb0a29ae9a
|
4
|
+
data.tar.gz: e33e09b0c99cdc864b082c32f0c459fd7a6c5775b0eeff9534e6ff33a0e91650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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](
|
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/
|
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
|
data/lib/dragonfly_libvips.rb
CHANGED
@@ -6,7 +6,7 @@ require 'vips'
|
|
6
6
|
|
7
7
|
module DragonflyLibvips
|
8
8
|
class UnsupportedFormat < RuntimeError; end
|
9
|
-
class
|
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
|
+
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:
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dragonfly
|