Cursor file (*.cur) doesn't import correctly.

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
fsmirne

Cursor file (*.cur) doesn't import correctly.

Post by fsmirne »

When loading the following file, ImageMagick throws a "Unexpected end-of-file" exception.
This used to work in version 6.2.4 I have on my Ubuntu machine, but fails in version 6.3.7.

Here's the URL of the cursor file I tested:
http://members.wolfram.com/flavios/magick/arrow.cur

Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Cursor file (*.cur) doesn't import correctly.

Post by magick »

Try this command:
  • convert icon:arrow.cur arrow.png
That explicitedly sets the image format to Microsoft Icon.
fsmirne

Re: Cursor file (*.cur) doesn't import correctly.

Post by fsmirne »

Your workaround fixes the problem.
Should the .cur extension be associated to the Icon importer automatically then?
I'm not sure which importer it tries to use, but if there's no other importer associated with the .cur extension, then maybe it should be associated with the Icon importer.

In any case, thanks for your help :)
Post Reply