Qhimm.com Forums
Final Fantasy 7 => FF7 Tools => Topic started by: sithlord48 on 2020-05-15 03:06:57
-
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
-
Warning
DDs is a contairer with can use several compression méthods.
ATM imagemagick can't use dc7, it's use dxt5 max so you'll realy loose in quality comparing to dc7.