svg2img 0.2.0-aarch64-linux-musl → 0.2.1-aarch64-linux-musl

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -0
  3. data/lib/svg2img/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7e640f94bcff6b4f654ebed5f79a494e86d1df9662509f9e20ffdeab382d99e
4
- data.tar.gz: 2d643bf3eceb2b67112b7b6c20172a3212ec3dd76680765893759c4a9cbec23f
3
+ metadata.gz: 5db2d5e506671b97dbfbc3868b1e014e237abae1f7bd3dc29928ae3eea429bb5
4
+ data.tar.gz: 59bfb924b92e566baa2f4c29f2325c28c02e6de13f6aa19f3c9fc30acd696014
5
5
  SHA512:
6
- metadata.gz: 9fb92f6e11d0cff66b2d74a628dbb61f72695e708279a8b56c0abe9335153d76811868a86a9e2456cdeb919f3a3f85285fe751de6afd2e41ffe1839d93548dc4
7
- data.tar.gz: 2276da4c3e4e2eaef6e04dd3769f01ed7be545dce176fa5a1302e375409c5450e45c934a81c34a8d8d0c269e9f82559d99bad9ca4cd21d4f165fb6da484f07e4
6
+ metadata.gz: 99c3007746a3332c4ab0232eced31a6edfd0f7b45be098579fbf904f01b5e4ea6176d749842099d8270c573c57d1a9554f0639f7827366ddab949872fbbde50d
7
+ data.tar.gz: d51aab9c2fcb6e84fc7d01d722075e2f53f5e50ffdf9b815e3428755d907c8f920fc1c2628dab7f960f2a41a528a444627e23854dfb1a8215e61a40b86d45f83
data/README.md CHANGED
@@ -40,6 +40,11 @@ bundle lock --add-platform arm64-darwin # Apple Silicon MacOS (i.e. M1)
40
40
 
41
41
  ## Usage
42
42
 
43
+ ```ruby
44
+ require "svg2img"
45
+ Svg2Img.process_svg(svg_string, options)
46
+ ```
47
+
43
48
  Example usage:
44
49
 
45
50
  ```ruby
@@ -66,6 +71,7 @@ send_data(png_data, type: 'image/png', disposition: 'inline')
66
71
  ### Options
67
72
 
68
73
  - `format` - output format, one of `:png`, `:jpg`, `:webp`, `:gif`
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.
69
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.
70
76
 
71
77
  ## Development
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svg2Img
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg2img
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: aarch64-linux-musl
6
6
  authors:
7
7
  - Orvar Segerström