rasterize

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

rasterize - Convert svg graphics to png images

rasterize is a command line tool to convert svg graphics to png images.

Go Report Card Go Reference

Install

go install github.com/typomedia/rasterize@latest

Usage

rasterize [options] [file]

Options

-i, --input  string   input svg file
-o, --output string   output png file
-s, --size   int      output size (default 1000 pixels)
-d, --debug  bool     debug mode

Example

rasterize -i example.svg
rasterize --input example.svg --size 512

Debug mode

rasterize --input example.svg --output image.png --debug
width:  100
height:  80
width:  1000
height:  800
Output: image.png
Elapsed: 206.2827ms

Copyright © 2023 Typomedia Foundation. All rights reserved.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址