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: 0

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