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 » 2015-05-13T08:26:18-07:00

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: 21101
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Converting DDS to PNG fails

Post by fmw42 » 2015-05-13T09:27:14-07:00


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

Re: Converting DDS to PNG fails

Post by Skyrunner » 2015-05-14T00:02:06-07:00

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: 1321
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Converting DDS to PNG fails

Post by dlemstra » 2015-05-14T00:46:05-07:00

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: 21101
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Converting DDS to PNG fails

Post by fmw42 » 2015-05-14T09:34:55-07:00

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 » 2015-05-15T05:59:29-07:00

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: 1321
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Converting DDS to PNG fails

Post by dlemstra » 2015-05-15T10:31:06-07:00

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

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests