svg2img 0.2.2-arm64-darwin → 0.2.3-arm64-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: c11516333bc7acf468f7739505789dc21d58cf1da82344c5211e42e19bf0b674
4
- data.tar.gz: 6cf06b34d9a5faca3cca098d6f2a781fa02289dda09abe83fe8a536f5e962069
3
+ metadata.gz: f0347840d4679cb398402609ff69cb979caaa0886fd96efd7d3a2aa5476b9708
4
+ data.tar.gz: e8a7015c0bfa2b239ac225ae3dee3cae6552ce69e67c50b6b887f7ad278816e0
5
5
  SHA512:
6
- metadata.gz: 5c42e645d05e340962c300fae6afc9319aa4c6ea2869771744fea770f7a3b8b653b43ef086a0e2c2e2bd7b377999da08de16983d505b6fe56a4d7a3fa057730e
7
- data.tar.gz: 6f80043b14946ee763044944dd9f0ec5aceca9756a96184eb93ec7fbca016a4a42c82bd6a4b100bf471bfcf57eb08aa9f084da82dce57ee5afce793f5ef346fb
6
+ metadata.gz: 9a894db1ce220f588d091f841b410ef92e54298721ba90686d6e03fbb9964bef30bc2c77b2f6add35fd154872ab0dc25bfcb0cd1e93ef6e7427bddfe38c7cdd1
7
+ data.tar.gz: 417913255b021d5c5dcb10d76a78aa91d4d83e1a606e14d575a1ceeb58ca434194f3065f993ceecef57fcf90c1dd346343f1cd668a8889f48361fe9e6490dafa
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.2"
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.2
4
+ version: 0.2.3
5
5
  platform: arm64-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: