Convert DDS to PNG using linux command line
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over
--
Chapters
00:00 Convert Dds To Png Using Linux Command Line
00:15 Accepted Answer Score 20
00:47 Thank you
--
Full question
https://superuser.com/questions/159379/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #commandline #conversion #png #dds
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over
--
Chapters
00:00 Convert Dds To Png Using Linux Command Line
00:15 Accepted Answer Score 20
00:47 Thank you
--
Full question
https://superuser.com/questions/159379/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #commandline #conversion #png #dds
#avk47
ACCEPTED ANSWER
Score 20
ImageMagick reads but doesn't write DDS. And of course it reads and writes PNG.
From identify -list format
:
...
DDS* DDS r-- Microsoft DirectDraw Surface
...
PNG* PNG rw- Portable Network Graphics (libpng 1.2.37)
...
To convert a file (leaving the original intact):
convert test.dds test.png
To convert a directory full:
for file in *.dds
do
convert "$file" "$(basename "$file" .dds).png"
done