SVG spritesheet maker
Project description
ssm
SVG spritesheet maker
ssm is a simple approach to creating and managing SVG spritesheets. It has 5 main functions:
- create: For creating spritesheets from a list of SVG sprites (i.e. SVG icons etc.)
- list: For listing the SVG sprites stored in a spritesheet
- add: For adding SVG sprites to an existing spritesheet
- remove: For remove SVG sprites from an existing spritesheet
- export: For exporting SVG sprites from an existing spritesheet. Can be used for converting a
<symbol>back into a standalone<svg>or to display a format suitable for HTML (using<use>).
For more details, run python -m ssm -h after installation.
Installation
To install the most stable version of this package, run:
$ pip install ssm-svg
Usage example
Create spritesheet icons.svg with search.svg and menu.svg as sprites:
$ python -m ssm create -f icons.svg search.svg menu.svg
Create spritesheet and overwrite existing file:
$ python -m ssm create -f icons.svg search.svg menu.svg -F
Create spritesheet with custom ID hamburger-icon instead of defaulting to its file name:
$ python -m ssm create -f icons.svg search.svg hamburger-icon=menu.svg
List IDs of SVG sprites in spritesheet:
$ python -m ssm list -f icons.svg
Add SVG sprites to spritesheet:
$ python -m ssm add -f icons.svg facebook.svg instagram.svg
Remove SVG sprites with IDs facebook and instagram from spritesheet:
$ python -m ssm remove -f icons.svg facebook instagram
NOTE: Inserting the same ID more than once would cause an error.
Add SVG sprites to spritesheet with custom ID fb-icon instead of defaulting to its file name:
$ python -m ssm add -f icons.svg fb-icon=facebook.svg
Export sprite with ID search from spritesheet:
$ python -m ssm export -f icons.svg search
Export sprite with ID search from spritesheet for use in HTML:
$ python -m ssm export -f icons.svg search --use
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ssm-svg-0.0.1.tar.gz.
File metadata
- Download URL: ssm-svg-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619de2d6c66a5d2f7fdadaae735e24732e469d02d40e226119162eb4227b130e
|
|
| MD5 |
1615e1846d97d8c521df07ff3838e80e
|
|
| BLAKE2b-256 |
fb8da5208599d9f65bc4101b3c630550ebd190952e926e5c346d57a10e6c7610
|
File details
Details for the file ssm_svg-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ssm_svg-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03de950148160fe31031a018c59e74ad0c58deccbd4dec71edc0fd7d0784f477
|
|
| MD5 |
df699338be6ba8158b6bcd70525644e9
|
|
| BLAKE2b-256 |
68b19060667cd860e4677d1e1d78aa1dd3b38f0421f86f5c159e7024f5440bc9
|