NAME
svg-spritemaker - Combine several SVG images into a single SVG sprite
SYNOPSIS
svg-spritemaker [-o OUTPUT] [-p PREFIX] FILE...
svg-spritemaker a.svg b.svg > sprite.svg # Standard usage
svg-spritemaker -p img a.svg b.svg > sprite.svg # Custom prefix
svg-spritemaker -o sprite.svg dir/*.svg # Output file
svg-spritemaker --prefix=logo --output=logos.svg logos/* # Long options
DESCRIPTION
svg-spritemaker takes several SVG images and combines them into a single SVG sprite. See SVG::SpriteMaker for more information about SVG sprites.
OPTIONS
- -o file, --out=file, --output=file
-
Write the sprite into the following file, overwriting it if necessary. By default the sprite is written on STDOUT.
- -p prefix, --prefix=prefix
-
Sets the prefix for the fragment identifiers. Default is
sprite
(which results in identifierssprite-a
,sprite-b
for the first example in the SYNOPSIS).
If an ID is shared between two or more input files, this program will try to rename each occurence except for the first one. This operation might have false positives (attributes/cdatas that are mistakenly identified to contain the ID-to-be-renamed) and false negatives (attributes/cdatas that actually contain the ID-to-be-renamed but this is missed by the module), and as such svg-spritemaker will warn if duplicate IDs are detected. You can suppress this warning by setting the SVG_SPRITEMAKER_NO_DUPLICATE_WARNINGS
environment variable to a true value.
SEE ALSO
SVG::SpriteMaker, https://css-tricks.com/svg-fragment-identifiers-work/
AUTHOR
Marius Gavrilescu, <marius@ieval.ro>
COPYRIGHT AND LICENSE
Copyright (C) 2015-2017 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or, at your option, any later version of Perl 5 you may have available.