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 +4 -4
- data/README.md +1 -0
- data/lib/svg2img/3.1/svg2img.bundle +0 -0
- data/lib/svg2img/3.2/svg2img.bundle +0 -0
- data/lib/svg2img/3.3/svg2img.bundle +0 -0
- data/lib/svg2img/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0347840d4679cb398402609ff69cb979caaa0886fd96efd7d3a2aa5476b9708
|
4
|
+
data.tar.gz: e8a7015c0bfa2b239ac225ae3dee3cae6552ce69e67c50b6b887f7ad278816e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/svg2img/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|