.ICO Read last scene

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
Tiongen
Posts: 2
Joined: 2014-06-23T06:01:53-07:00
Authentication code: 6789

.ICO Read last scene

Post by Tiongen »

Hello together,

I am using ImageMagick 6.5.4-7, C++ API.

When using the Read() Function. It should be possible to read the latest scene from the list of scenes.
So it looks like this: ImageObject.read(inputFile + "[-1]")

This is working for most of my ICO Images. Tested about 100.

But for some ICO it is not working. It is selecting some scene from the middle.
If I do "identify" on those ICO Files, they are showing me more scenes, than "-1" is selecting.
Opening them in GIMP, GIMP shows me 16 Layers.

For example
ImageObject.read(inputFile + "[-1]") will select scene 5.
But "identify inputFile" shows me 0-16 scenes.
I am expecting "-1" to select scene 16.

Any Idea, what is going on ? Could this be a bug in IM ?
I don't have any idea to prevent this from happening.

Thanks
Tiongen
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: .ICO Read last scene

Post by fmw42 »

6.5.4-7
This is ancient (almost 350 versions old). It is likely to be fixed in current versions of IM. I doubt there is going to be any fix for this old version.

If you want to post one of your bad ico files to some free hosting service and put the URL here, some one will likely be able to confirm if it works properly in current versions of IM.
Tiongen
Posts: 2
Joined: 2014-06-23T06:01:53-07:00
Authentication code: 6789

Re: .ICO Read last scene

Post by Tiongen »

Thanks for the info.

Here is one of the ICO.
http://s22.postimg.org/oly0kn0bx/Perian.png

I am using this version, because I can only use official CentOS6 Builds.
I am using the newest version for CentOS6.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: .ICO Read last scene

Post by snibgo »

That is a PNG file, not an ICO file.
snibgo's IM pages: im.snibgo.com
Post Reply