More scripts for converting and pixelating images for the game.
This commit is contained in:
parent
cdd58ee21a
commit
74a1801069
4 changed files with 690 additions and 0 deletions
14
scripts/pixelize.ps1
Normal file
14
scripts/pixelize.ps1
Normal file
|
@ -0,0 +1,14 @@
|
|||
Param (
|
||||
[string]$InFile,
|
||||
[string]$OutFile,
|
||||
[string]$Colors=16,
|
||||
[string]$Size="256x256",
|
||||
[string]$Pixel="7"
|
||||
)
|
||||
|
||||
cp $InFile temp.png
|
||||
# magick temp.png -colors $Colors -quantize sRGB -dither FloydSteinberg color.png
|
||||
|
||||
magick temp.png -posterize $Colors -quantize sRGB -dither FloydSteinberg color.png
|
||||
bash ./scripts/magick/pixelize -s $Pixel -m 2 color.png pixels.png
|
||||
magick.exe pixels.png -interpolate nearest -interpolative-resize $Size $OutFile
|
Loading…
Add table
Add a link
Reference in a new issue