使用Linux命令行将DDS转换为PNG


Answers:


17

ImageMagick读取但不写入DDS。当然,它可以读写PNG。

来自identify -list format

...
DDS * DDS r-- Microsoft DirectDraw Surface
...
PNG * PNG rw-可移植网络图形(libpng 1.2.37)
...

要转换文件(保留原样):

convert test.dds test.png

要完全转换目录:

for file in *.dds
do
    convert "$file" "$(basename "$file" .dds).png"
done

2
最新版本的ImageMagick(6.8.7-4)也会写入DDS文件
Paolo Gibellini 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.