svg2png.cfg

Package: WA2L/WinTools 1.2.08
Section: Configuration Files (4)
Updated: 30 March 2017
Index Return to Main Contents

 

NAME

svg2png.cfg - configuration file for svg2png

 

SYNOPSIS

WA2LWinTools/etc/svg2png.cfg

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

This is the optional configuration file for the svg2png command.

 

FILEFORMAT

Rows starting with # are considered as comments.

The file format is OPTION=VALUE

Between the OPTION , the = and the VALUE are no spaces.

You can comment out any OPTION or completely remove the related setting line to use the default settings.

 

OPTIONS

SVG2PNG_OPTIONS
set the command line options for the convert(3) command that is internally used to create the PNG file from SVG files.

Internally the convert command is called as follows:

convert input.svg SVG2PNG_OPTIONS output.png

Therefore the specified SVG2PNG_OPTIONS are passed between the input.svg and the output.png files.

Example: SVG2PNG_OPTIONS=-transparent white -geometry x200

Default: SVG2PNG_OPTIONS=

 

EXAMPLES

1) Scale an image in %

#
# WA2LWinTools/etc/svg2png.cfg - Configuration file for svg2png
#
# [00] 28.03.2017 CWa   Initial Version
#

# scale image to 25%
# and replace white with transparent background:
#
SVG2PNG_OPTIONS=-scale 25% -transparent white

2) Scale an image to a certain height

#
# WA2LWinTools/etc/svg2png.cfg - Configuration file for svg2png
#
# [00] 28.03.2017 CWa   Initial Version
#

# scale image to a height of 200 pixels with the same aspect ratio
# and replace white with transparent background:
#
SVG2PNG_OPTIONS=-geometry x200 -transparent white

3) Rotate an image by 90 degrees

#
# WA2LWinTools/etc/svg2png.cfg - Configuration file for svg2png
#
# [00] 28.03.2017 CWa   Initial Version
#

# rotate image by 90 degrees (clockwise) 
# and replace white with transparent background:
#
SVG2PNG_OPTIONS=-rotate 90 -transparent white

 

SEE ALSO

wintoolsintro(1), svg2png(1), http://www.imagemagick.org/script/index.php, http://www.imagemagick.org/script/command-line-options.php, http://www.imagemagick.org/script/convert.php

 

NOTES

-

 

BUGS

-

 

AUTHOR

svg2png.cfg was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2020 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
FILEFORMAT
OPTIONS
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:33:06 GMT, September 14, 2024