svg2img 0.2.2-arm64-darwin → 0.2.4-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: 44f9b41fb3139a107a2cdfc782024154cb6142939ff762a3b2724adcf7b590c1
4
+ data.tar.gz: b17210f082d822f44df5125bae9f1fa603200084ce8251483ece177cb7444cd2
5
5
  SHA512:
6
- metadata.gz: 5c42e645d05e340962c300fae6afc9319aa4c6ea2869771744fea770f7a3b8b653b43ef086a0e2c2e2bd7b377999da08de16983d505b6fe56a4d7a3fa057730e
7
- data.tar.gz: 6f80043b14946ee763044944dd9f0ec5aceca9756a96184eb93ec7fbca016a4a42c82bd6a4b100bf471bfcf57eb08aa9f084da82dce57ee5afce793f5ef346fb
6
+ metadata.gz: 9877322a31fb8b957de84f948c9e9dba95efa66bb2b6da07b02ff684649bd0912345b51216e44a1e376f99733ef8d481c9a621bf436c04d8082b938aaaca58ea
7
+ data.tar.gz: 5620711128227f65b0fbbda5b7f7a40a13460f65c0b4d780e81f70cbe721be6a9b11b0cc50acc2471dcd9ceb0a4676d6108fe9716ca9a9ba081288e6bc5c6354
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.4"
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.4
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: