svg2img 0.2.1 → 0.2.2
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/ext/svg2img/src/lib.rs +0 -16
- data/lib/svg2img/version.rb +1 -1
- data/tmp/arm64-darwin23/stage/tmp/arm64-darwin23/stage/Cargo.lock +1607 -0
- data/tmp/arm64-darwin23/stage/tmp/arm64-darwin23/stage/Cargo.toml +7 -0
- data/tmp/arm64-darwin23/stage/tmp/arm64-darwin23/stage/ext/svg2img/Cargo.toml +17 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: facc47fc0eab418cfe750f69e9bbfe715d275712ce9cfdab91c1636464227e1a
|
4
|
+
data.tar.gz: 69c80ee30083e9a1606d671917933956ef3252371ef2534af36402a301096b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc06eaf11a13413293ae4ad3580ab60a72811b854eb4e7a17ea65c7ef5d6ad36506a21af607fc9a63e8963c7bc3b82e60ddaa8e9b2c78e1c0bab74c84cf5b195
|
7
|
+
data.tar.gz: 81cdd0a53eb265ec5763777235c4f7da633e4d352f19855d9b0694eeff3afa203bf464a2d2ce3431e71b5c8fbc1608b7b6f0b39bbed71219237717411d367dee
|
data/ext/svg2img/src/lib.rs
CHANGED
@@ -153,22 +153,6 @@ fn image_from_svg(bytes: &[u8], size: ProcessSize) -> Result<DynamicImage, anyho
|
|
153
153
|
let tx = (image_width as f32 - rendered_width) / 2.0;
|
154
154
|
let ty = (image_height as f32 - rendered_height) / 2.0;
|
155
155
|
|
156
|
-
// panic!(
|
157
|
-
// r#"
|
158
|
-
// svg_width: {svg_width}
|
159
|
-
// svg_height: {svg_height}
|
160
|
-
// svg_ratio: {svg_ratio}
|
161
|
-
// image_width: {image_width}
|
162
|
-
// image_height: {image_height}
|
163
|
-
// image_ratio: {image_ratio}
|
164
|
-
// rendered_width: {rendered_width}
|
165
|
-
// rendered_height: {rendered_height}
|
166
|
-
// scale: {scale}
|
167
|
-
// tx: {tx}
|
168
|
-
// ty: {ty}
|
169
|
-
// "#
|
170
|
-
// );
|
171
|
-
|
172
156
|
// Scale svg and place it centered
|
173
157
|
let transform: resvg::usvg::Transform = resvg::tiny_skia::Transform {
|
174
158
|
sx: scale,
|
data/lib/svg2img/version.rb
CHANGED