@0x-jerry/imger
v0.4.1
Published
A command line tool that help you to generator images, support icns and ico.
Downloads
19
Readme
Imger
A command line tool that help you to generator images, support icns and ico.
Install
pnpm i @0x-jerry/imger
Global install:
pnpm add -g @0x-jerry/imger
Usage
Use default preset.
imger ./path/to/image.png ./output
Use json preset file.
./preset.json
:
{
"input": "path/to/image",
"output": "path/to/output/dir",
"shapes": [
"icon.ico",
"icon.icns",
"128x128.png",
"[email protected]",
"512x512.png",
{
"name": "custom-name.png",
"size": "25x25"
},
{
"name": "[email protected]",
"size": "25x25@2x"
}
]
}
imger -p ./preset.json