vectory 0.7.4 → 0.7.6

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: aef4319c091897a2bc5971c65ef3d87332655aa1d76516ffbcd66fc9541465da
4
- data.tar.gz: ca405f2071d56b523ec6203b6dcf98c390fa420c2c9a58102fdb766a179d9577
3
+ metadata.gz: 9517c7e8299f78520e9e150b4282b84e11dc94d1bb61f5319fd4b8f7c66c5e75
4
+ data.tar.gz: e75a98ab4378796775d128d8acc8d2a9a9416ed34fb998c28a704f20fdc85a3d
5
5
  SHA512:
6
- metadata.gz: 101b0bbf1881240b6a84516450e8e73670c726339d16d1bb7b15e3efd806422f237a95dcc5b1e7145c951df4326cbda679d7f89c0523909822e0d3a28ecf2c73
7
- data.tar.gz: 4a5b4495f7a8335e8514c2dd76fc332ce6f46afe070132f9aee427317aaeedcbfd4922c23fb7efff8c429f89a2cff74077cfdb5d3e4134279867556b9e38a614
6
+ metadata.gz: 83a607b2d61ae61a7f57396da3d6f06cdf6191fb23f8520a9226c4461f4ab3bc7448bc8ed51694af9eb7cb25ef2a2645fc0fa8e6ef13966b984cf01eccce3df0
7
+ data.tar.gz: 1c76f063a7de3d16f7859717a8b437628d2448b5d0b678bb600f43c21faea3224ee3e7549701270a485179babce981ac3308a2d0a361306244c569799ed6e031
@@ -15,7 +15,8 @@ module Vectory
15
15
  end
16
16
 
17
17
  def get_image_size(img, path)
18
- realsize = ImageSize.path(path).size
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
@@ -82,6 +82,7 @@ module Vectory
82
82
 
83
83
  def build_svg_document(image)
84
84
  vector = build_vector(image)
85
+ return unless vector
85
86
 
86
87
  SvgDocument.new(vector.content)
87
88
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vectory
4
- VERSION = "0.7.4"
4
+ VERSION = "0.7.6"
5
5
  end
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
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-04-10 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: emf2svg
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.3.26
142
+ rubygems_version: 3.3.27
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Pairwise vector image conversions.