mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 13:34:06 +09:00
Gzipping PSDs; every art must be alpha premultiplied; added converter batch
This commit is contained in:
14
work_files/graphics/! PSD to TGA imagemagick.bat
Normal file
14
work_files/graphics/! PSD to TGA imagemagick.bat
Normal file
@@ -0,0 +1,14 @@
|
||||
SET basefilename=%~d1%~p1%~n1
|
||||
SET inputextension=%~x1
|
||||
rem inputextension should be dot-psd
|
||||
|
||||
IF "%inputextension%" NEQ ".psd" goto fail
|
||||
|
||||
convert %1 -colorspace sRGB -write mpr:temp -background black -alpha Remove mpr:temp -compose Copy_Opacity -composite "%basefilename%.tga"
|
||||
|
||||
exit
|
||||
|
||||
:fail
|
||||
echo "File not PSD"
|
||||
pause
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user