Gzipping PSDs; every art must be alpha premultiplied; added converter batch

This commit is contained in:
minjaesong
2019-01-13 20:35:39 +09:00
parent 4cec6fac69
commit e926b0175f
14 changed files with 51 additions and 20 deletions

View File

@@ -0,0 +1,9 @@
All the images must be exported as .tga or .tga.gz. All the alpha must be premultiplied.
It is recommended to use ImageMagick command line tool to convert PSD to TGA directly.
convert terrain.psd -colorspace sRGB -write mpr:temp -background black -alpha Remove mpr:temp -compose Copy_Opacity -composite terrain.tga
'convert' is a ImageMagick's convert.exe, usually located at 'C:\Program Files\ImageMagick-7.0.8-Q16'
If you have ImageMagick installed, please use included batch file.

View 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

Binary file not shown.

Binary file not shown.

Binary file not shown.