tools-sprite
v1.2.6
Published
tools helper for image sprite, need improvement on create sprite. what it is for, it is for user who manage image raw with a bunch images, and folder.
Downloads
27
Readme
Tools Sprites
tools helper for image sprite, need improvement on create sprite. what it is for, it is for user who manage image raw with a bunch images, and folder.
note !! make sure folder and asset (image) serliazed
|---Images
|---------Images_1.png
|---------Images_2.png
|---------Images_3.png
how to use
Change all image size
## change size
pnpm tool-sprite <directory_path> --size 360x360
change folder name
after this command running its folder change to new name, and asset follow with serial number
## change folderName and aset name
pnpm tool-sprite <directory_path> --changeFDname "<folder_name>"
create sprite image
and this make 3 file, sprite.png, sprite.json, sprite.html you can check preview with running HTML
## create sprite image
pnpm tool-sprite <directory_path> --createSprite "<max_width>"