Converting DDS to PNG fails

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Skyrunner
Posts: 3
Joined: 2015-05-13T08:20:01-07:00
Authentication code: 6789

Converting DDS to PNG fails

Post by Skyrunner »

I am trying to convert DDS files to PNG.

Using the command

Code: Select all

convert filename.dds filename.png
causes this error:

Code: Select all

convert.im6: unexpected end-of-file `item_herb.dds': No such file or directory @ error/dds.c/ReadDDSImage/403.
And the output is this image:

Image

However, using image-online-converter to convert it works fine:

Image

Are there some dds options that I need to specify? If you are curious, the file is uploaded here, using Dropbox.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting DDS to PNG fails

Post by fmw42 »

Skyrunner
Posts: 3
Joined: 2015-05-13T08:20:01-07:00
Authentication code: 6789

Re: Converting DDS to PNG fails

Post by Skyrunner »

I don't think the options help me. I tried all three compressions and still got an identical result for all of them.

Is it possible that the particular dds file formats I am using are simply not supported by ImageMagick? :/
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Converting DDS to PNG fails

Post by dlemstra »

Are you using the latest version of ImageMagick? I can convert the image to the same output as you are expecting with the latest version (6.9.1-2)
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting DDS to PNG fails

Post by fmw42 »

It saves a lot of back and forth messages, if people would read the very top post on the User's Forum at viewtopic.php?f=1&t=9620 and always provide their IM version and platform.
Skyrunner
Posts: 3
Joined: 2015-05-13T08:20:01-07:00
Authentication code: 6789

Re: Converting DDS to PNG fails

Post by Skyrunner »

Hmm, it seems I'm using 6.7.7-10, dated to 2014 March 6th. I'm not sure I would be able to install the most recent version because I think I got this from either Ubuntu's software manager or an apt-get... I suppose I could download an exe and just not add it to the path.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Converting DDS to PNG fails

Post by dlemstra »

The date that you are seeing is the date it was compiled not the release date. Version 6.7.7 is from 2012.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply