image_quality_check 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/image_quality_check/version.rb +1 -1
- data/lib/image_quality_check.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f464a43936793939abade67315eede661024e50014b4aeff0722659d0ea5a56
|
4
|
+
data.tar.gz: ef7ef680f25e0519d93758da9d2c2bf17916b5d2c955727bba43cf7cfb35bc84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19a03ee429e6abd1047ec6e48caead939eb306da1806b00adcd4e6f7e073f80bb89dc6d9862ab55945237af9fe88e7c96aa18a48b91cb7c82e4c0ec71bf30aff
|
7
|
+
data.tar.gz: 519449db3f4fb2f9731843913d69a9dcc238b5c994b6491963fe1f45f717248ee7b3eccd378c9b4385270ecd242bf53977e696799e59de7e6b7f1c40e72689e1
|
data/lib/image_quality_check.rb
CHANGED
@@ -17,6 +17,8 @@ module ImageQualityCheck
|
|
17
17
|
# image magick gif delay bug invalid json
|
18
18
|
# https://github.com/ImageMagick/ImageMagick/issues/1624
|
19
19
|
out.gsub!(/("delay": "[^"]+")\n/m, "\\1,\n")
|
20
|
+
return {} if out.empty?
|
21
|
+
|
20
22
|
raw_json = JSON.parse(out)
|
21
23
|
json = raw_json.is_a?(Array) ? raw_json.first['image'] : raw_json['image']
|
22
24
|
background_is_transparent =
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_quality_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wienert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.2.
|
76
|
+
rubygems_version: 3.2.15
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Thin gem wrapper that uses imagemagick and python-opencv to help determine
|