PDA

View Full Version : .dds batch resizer?



Roger
August 26th, 2009, 10:03
Anyone know of a batch resizer for .dds and .bmp files? I wonder if DTXBMP could be made to respond? I'm thinking of certain models where massive texture files in 2048 could be resized to 1024 en masse.

spotlope
August 26th, 2009, 11:03
I know ImageTool does batch work. Check the options on it for details, but I've done it before.

Bjoern
August 26th, 2009, 11:09
Well, Imagetool plus NConvert (->Google) could do the trick.

Here's a rough sketch for a Batch file:



echo on
nconvert -out bmp -o %%.bmp -yflip -ratio -rtype linear -resize 1024 1024 *dds
ImageTool.exe -e dds -DXT1 -mip -nogui *.bmp
pause


Might need some tweaking.

Basically, NConvert resizes the textures and saves them as .bmps, the Imagetool re-saves them as .dds.

I've taken this from a conversion batch files for autogen and other textures.

PutPut
August 26th, 2009, 11:32
I used to do "batch" conversions of large numbers of photos from .jpg to .bmp and back in Paint Shop Pro with a script. The latest version PSP 2 Ultimate has a script toolbar that looks better than I remember. PSP does not support .dds so that would be done elsewhere (Imagetool).

Paul

Roger
August 27th, 2009, 09:13
Thanks for the suggestions fellas:ernae: