multires

command module
v0.0.0-...-aa4f919 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

README

multires

Creates PNG images in different resolutions from a given directory containing one or more SVG file/s.

Useful if, for example, you need to generate resources for Javas multi resolution images (icons for HiDPI support).

Example usage: ./multires images/ or go run multires.go images/

Will create a subdirectory for each resolution, each containing the images in the corresponding resolution:

images/example.svg
images/exampleToo.svg
imgaes/100/example.png
imgaes/100/exampleToo.png
images/125/example.png
images/125/exampleToo.png
...

The desired scales and dimensions have to be adjusted @line 25

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