bashscriptingbatch-processinggimpdds-format

Batch convert DDS file to DDS without mipmaps


I have a Mount & Blade: Warband mod called 1257 AD. The mod itself is great, but all the textures have to be resaved to remove mipmaps from dds files, to remove glitches on GNU/Linux. And of course, I could do this manually, but it will took a lot of time(over 2000 textures), and is there any way for gimp to just open and save the file without mipmaps. Also, last time I wanted to do this I used loop with Imagemagicks convert, but it kept mipmaps. So how do I do this kind of convert?


Solution

  • You should use the 'define' dds:mipmaps if you don't want to keep the mipmaps. Setting it to zero will disable the writing of mipmaps.

    convert input.dds -define dds:mipmaps=0 output.dds
    

    You can find a list of all dds defines here: http://www.imagemagick.org/script/formats.php.