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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18e78e2be604a584bdf8e325b2f007b46505e6d2d74cd584d55fa460aecc31d5
4
- data.tar.gz: 6bacef7baabce46157cbc3d1af5dbefaae727e8726a1f35495c2d35f1d54cff1
3
+ metadata.gz: facc47fc0eab418cfe750f69e9bbfe715d275712ce9cfdab91c1636464227e1a
4
+ data.tar.gz: 69c80ee30083e9a1606d671917933956ef3252371ef2534af36402a301096b83
5
5
  SHA512:
6
- metadata.gz: 1c34f340977be8cdf8c4fd8e2a49e15a5409bdbcb770d555bc984d085ee1e5de95d16f37584d06ff49fb4c3b72b50d1c7ef23393e2178a9024b5821dc14a202f
7
- data.tar.gz: 1126a561399fb919c61ea017d7cd1d910ab4422ab51c568bf9482e7c421b9d56e532658dc722b293264fc3b67cbf2701c1d7e0b605f1c2a0e3205915c340c4e8
6
+ metadata.gz: bc06eaf11a13413293ae4ad3580ab60a72811b854eb4e7a17ea65c7ef5d6ad36506a21af607fc9a63e8963c7bc3b82e60ddaa8e9b2c78e1c0bab74c84cf5b195
7
+ data.tar.gz: 81cdd0a53eb265ec5763777235c4f7da633e4d352f19855d9b0694eeff3afa203bf464a2d2ce3431e71b5c8fbc1608b7b6f0b39bbed71219237717411d367dee
@@ -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,
@@ -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.2"
5
5
  end