Hey all. I wrote this little script for users on linux or mac os who want to convert png2dds files.
1. Install imagemagick from your package manager
2. Save this a png2dds.sh
for D in `find . -type d`
do
for file in "$D"/*.png
do
if [ "$file" != "./*.png" ]; then
convert $file "$(echo $D | cut -c3-)/$(basename "$file" .png).dds"
fi
done
done
run with png2dds.sh it will convert every png file from this folder recursively into a dds file with the same name in the same path as the png file.
To remove png files after the script is done
find . -name *.png -delete