svg2img 0.2.1-x86_64-linux → 0.2.3-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: dd2a88cff4273183b133797dc4beb262dcc41dc62470064321a7d166f4fe7d1d
4
- data.tar.gz: 4bb645629d0c46e7e2db34fa556e5c2f1240858722b0c20895b16126ff96c9b7
3
+ metadata.gz: 858bdc6566db67d41df36d81b8d9e8da698d1e72b50405f4d9e8780c73c7e457
4
+ data.tar.gz: 257e19ed3a0f471ced82114d7e2964775ac612a5d6f3f30c5e891652e07a973e
5
5
  SHA512:
6
- metadata.gz: 31c3bf5f8b12d06fe3aa21a14646c9e38519074212b5b1c396829b3ede75df03796bf09ec5b47cd044aa428659a9f799f9e0d20299e6a8002cb39b484c51eea5
7
- data.tar.gz: bd115d7a1dc3156ae96b47b73bd0be4464690039cf771010b6a1f2532fde14c2e1c46fb725fdc5a5cc6e9a998b85c1aea0eb6de315a8a4a3c9b1fb324a448fb9
6
+ metadata.gz: 9c04ff3df8c4675421dd1132cfdb5feb32d0a8dea9ba2648d2859ecfdccdbe82bedc29559c0a72f101d3d6000cb4b371925ed4d171fe05de4837050cfe35859c
7
+ data.tar.gz: e2a422b357319ef950caa85eee52b2756ca9880f5383e2875991cbe5c74b556a2f3761623ac4e348c4ce08e43133608b94bfd86a213b2f99dc845a89ff5ae1bf
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-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:
@@ -20,6 +20,7 @@ files:
20
20
  - LICENSE.txt
21
21
  - README.md
22
22
  - lib/svg2img.rb
23
+ - lib/svg2img/3.1/svg2img.so
23
24
  - lib/svg2img/3.2/svg2img.so
24
25
  - lib/svg2img/3.3/svg2img.so
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