svg2img 0.2.2-x86_64-linux → 0.2.4-x86_64-linux

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: 75bc20459bde33a9221de4c8822b37aa7374e3a5c97caaca483339058acf3576
4
- data.tar.gz: 895d379a281151ebc0378f6b1d0fd2a2aa1c263a6c520500ceb193d8890f16b7
3
+ metadata.gz: c318e5226d37d4c2b7d7fa0399204a9457912fee6c35ad68b660fd8f425c6846
4
+ data.tar.gz: c6f827d8568248362da2d6a76cdbbf660eeca81e769418dd15c6ba2815787d58
5
5
  SHA512:
6
- metadata.gz: 17a2172dcca3e77003bf6835c91f42beed2885b54af7c0c88f28c2e824daaea640b6ad89c54e024a084bbab6e036c2708803500f9586f54ae9b0f4f0dc235b11
7
- data.tar.gz: 281d768ea199abe60902c4a59d28422d3edc4d21f3f597ae58e6cb0c118d854d07224ea3349f8794d26d0a9de2ab1a6de51f20ece4370b5f9312bb2fa7006979
6
+ metadata.gz: f1072082e68e93c3a191ca043698eba0431a40ffa355aad99013ef62cc394247a4f2b4643e52622661de333a1e78ebef8d717cbdcfb0a711953c45ce2fab91b5
7
+ data.tar.gz: 42437f262a386dcb60560a49afa7ce572fc433350c71a49cfb792769d85be3fe15ef0dd1888597a1df89258f7fbac8d205b0f685bd1c5472f687f9289786e84c
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: x86_64-linux
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: