image_quality_check 0.2.1 → 0.2.2
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.rb +2 -2
- data/lib/image_quality_check/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 072a442643498f99201a80d2a59a89e9ead7463be6eda2155b2aa6f75ae58ba1
|
4
|
+
data.tar.gz: abc1a41f55e99a72ce454b7208b03260910491acb65dcc79fb2710c086549622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c59a8d561a40a222c141e8c81f2f0d92d801656116b458d58724c2066a45cbe11721503b038a23ae1cacb32898df9349d1b28da6c4ee0731d9611f1a210171f1
|
7
|
+
data.tar.gz: afb99bb8b3231c245ef11c3efa8c6e421020033b6df32c5ed0c9acc0a9201659a5c7e4ed57eefc89a78c558d089df32da71d442df9f8b0ef3d8ab8d01cb32db9
|
data/lib/image_quality_check.rb
CHANGED
@@ -26,8 +26,8 @@ module ImageQualityCheck
|
|
26
26
|
format: json['format'].downcase,
|
27
27
|
mime_type: json['mimeType'],
|
28
28
|
background_is_transparent: background_is_transparent,
|
29
|
-
width: json.dig('geometry', 'width'),
|
30
|
-
height: json.dig('geometry', 'height'),
|
29
|
+
width: json.dig('geometry', 'width').to_i,
|
30
|
+
height: json.dig('geometry', 'height').to_i,
|
31
31
|
quality: json['quality'],
|
32
32
|
blur: blur_detect(path_to_image).map { |k, v| [ k.to_sym, v ] }.to_h
|
33
33
|
}
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wienert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -73,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
|
77
|
-
rubygems_version: 2.7.6
|
76
|
+
rubygems_version: 3.2.0.rc.1
|
78
77
|
signing_key:
|
79
78
|
specification_version: 4
|
80
79
|
summary: Thin gem wrapper that uses imagemagick and python-opencv to help determine
|