vectory 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vectory/image_resize.rb +2 -1
- data/lib/vectory/version.rb +1 -1
- 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: 9517c7e8299f78520e9e150b4282b84e11dc94d1bb61f5319fd4b8f7c66c5e75
|
4
|
+
data.tar.gz: e75a98ab4378796775d128d8acc8d2a9a9416ed34fb998c28a704f20fdc85a3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a607b2d61ae61a7f57396da3d6f06cdf6191fb23f8520a9226c4461f4ab3bc7448bc8ed51694af9eb7cb25ef2a2645fc0fa8e6ef13966b984cf01eccce3df0
|
7
|
+
data.tar.gz: 1c76f063a7de3d16f7859717a8b437628d2448b5d0b678bb600f43c21faea3224ee3e7549701270a485179babce981ac3308a2d0a361306244c569799ed6e031
|
data/lib/vectory/image_resize.rb
CHANGED
@@ -15,7 +15,8 @@ module Vectory
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def get_image_size(img, path)
|
18
|
-
|
18
|
+
detected = ImageSize.path(path).size
|
19
|
+
realsize = detected unless detected.all? { |x| x.nil? || x.zero? }
|
19
20
|
s = image_size_interpret(img, realsize || [nil, nil])
|
20
21
|
image_size_zeroes_complete(s, realsize)
|
21
22
|
end
|
data/lib/vectory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vectory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: emf2svg
|