svg2img 0.2.1-x86_64-darwin → 0.2.3-x86_64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b155ad9fefd4a69d156f4229b019242ddbaa0990e0a1e92bc28b327fa30a763f
4
- data.tar.gz: 7d206c846af00fdeea386b4856e7968397eb27d775674a2a0d47b1fbe601827b
3
+ metadata.gz: 9ec671309a3df0ee9b03e067f53697fe0ac17a3ca02a250ed0c0893b8cd9fa8e
4
+ data.tar.gz: 606aec8fef02ce09c620bd155ddb7b64176105673eb8eab2ddb79c3362c6ff96
5
5
  SHA512:
6
- metadata.gz: 94befb766b42db9612d1f9bebd0a34e678cea17c3dbc289b4f4022ce23a439e91a6f207ab04ef7b7948d29b97e27a06ffd265897adcee0da6d7bd4312fe532b0
7
- data.tar.gz: 46d1398c1c23ff26c00798d812885cb77907c3c64b70d129ca0d64553b3b99e278f5249a9deacd81e690a19b66881bb4271049c65dce0668913bdb69cb47f627
6
+ metadata.gz: 11ac2fbb3acee378b00673de68aa1af0822b222bfe36a01b286af05bccd8d412cffd739b40ef97fbcc2380b374274a05beeec048df0f00517f80ec94d4ef8442
7
+ data.tar.gz: 7b4eaa2c35296f6ab1e18e2525894ea4e820c96702b90e5d77942a1c2e6671bb00113b22e49cf90a77b7f350d988763138e4f3985eac2186dde7d3230d767425
data/README.md CHANGED
@@ -73,6 +73,7 @@ send_data(png_data, type: 'image/png', disposition: 'inline')
73
73
  - `format` - output format, one of `:png`, `:jpg`, `:webp`, `:gif`
74
74
  - `output_path` - path to the output image. If not provided, a temporary file will be created and the path to it will be returned.
75
75
  - `size` - size of the output image as a proc that receives the width and height of the SVG and returns an array with the width and height of the output image. If the provides size has a different aspect ratio than the SVG, the image will be resized to fit in the center of the provided size. If not provided, the output image will have the same size as the SVG.
76
+ - `super_sampling` - supersample factor. The output image will be rendered `super_sampling` times larger than the SVG and then resized to the desired size. This can be used to improve the quality of the output image. Default is 2. Must be a power of 2. 1 means no super sampling.
76
77
 
77
78
  ## Development
78
79
 
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svg2Img
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg2img
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Orvar Segerström
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-17 00:00:00.000000000 Z
11
+ date: 2024-08-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -20,6 +20,7 @@ files:
20
20
  - LICENSE.txt
21
21
  - README.md
22
22
  - lib/svg2img.rb
23
+ - lib/svg2img/3.1/svg2img.bundle
23
24
  - lib/svg2img/3.2/svg2img.bundle
24
25
  - lib/svg2img/3.3/svg2img.bundle
25
26
  - lib/svg2img/version.rb
@@ -38,7 +39,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
39
  requirements:
39
40
  - - ">="
40
41
  - !ruby/object:Gem::Version
41
- version: '3.2'
42
+ version: '3.1'
42
43
  - - "<"
43
44
  - !ruby/object:Gem::Version
44
45
  version: 3.4.dev