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
#
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
#
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
#
pnpm tool-sprite <directory_path> --createSprite "<max_width>"