Improper image header

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?".

Improper image header

Postby jeffATwork » 2009-10-30T13:48:52+00:00

When attempting to convert a pct created by Quicktime 7 Pro, I get

$ convert frame1.pct frame1.jpg
convert: Improper image header `/var/folders/rJ/rJLQE-4XEXqyGP5Q9Q4Mg++++TM/-Tmp-/magick-c9ZU3eZU' @ pict.c/ReadPICTImage/871.

Running Snow Leopard on a MacBook Pro.

I can open the pct file in Photoshop and in 32 bit mode in Preview.

Any ideas?

Thanks!!
jeffATwork
 
Posts: 10
Joined: 2009-01-02T14:14:45+00:00
Location: Minneapolis, MN

Re: Improper image header

Postby anthony » 2009-11-01T19:19:21+00:00

That type of error is caused by a failure of the 'delegate' program IM used to convert the image.

More than likely the delegate program ran, but produced a empty or 'unrecognised' output file
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/
User avatar
anthony
 
Posts: 4013
Joined: 2004-05-31T19:27:03+00:00
Location: Brisbane, Australia

Re: Improper image header

Postby magick » 2009-11-02T06:39:53+00:00

Post a URL to your image here. We need to download it and reproduce the problem before we can offer a solution.
User avatar
magick
Site Admin
 
Posts: 5671
Joined: 2003-05-31T11:32:55+00:00

Re: Improper image header

Postby jeffATwork » 2009-11-02T09:06:04+00:00

magick wrote:Post a URL to your image here. We need to download it and reproduce the problem before we can offer a solution.


http://clients.clockwork.net/imagemagick/frame1.pct

Thanks!
jeffATwork
 
Posts: 10
Joined: 2009-01-02T14:14:45+00:00
Location: Minneapolis, MN

Re: Improper image header

Postby jeffATwork » 2009-11-03T07:09:16+00:00

jeffATwork wrote:
magick wrote:Post a URL to your image here. We need to download it and reproduce the problem before we can offer a solution.


http://clients.clockwork.net/imagemagick/frame1.pct

Thanks!


Accessing the image seems to be a problem. I'll repost when I figure out what's wrong with the URL.
jeffATwork
 
Posts: 10
Joined: 2009-01-02T14:14:45+00:00
Location: Minneapolis, MN

Re: Improper image header

Postby jeffATwork » 2009-11-03T10:39:07+00:00

jeffATwork wrote:
jeffATwork wrote:
magick wrote:Post a URL to your image here. We need to download it and reproduce the problem before we can offer a solution.


http://clients.clockwork.net/imagemagick/frame1.pct

Thanks!


Accessing the image seems to be a problem. I'll repost when I figure out what's wrong with the URL.

The file's there. I was testing accessibility with Safari which got upset about server certification and couldn't download. Use wget or something.
jeffATwork
 
Posts: 10
Joined: 2009-01-02T14:14:45+00:00
Location: Minneapolis, MN

Re: Improper image header

Postby magick » 2009-11-03T12:02:48+00:00

We downed loaded the file. There is no readily apparent reason why ImageMagick cannot read the image. It will take some serious debugging to fix the problem. We currently do not have an ETA on when you can expect a patch.
User avatar
magick
Site Admin
 
Posts: 5671
Joined: 2003-05-31T11:32:55+00:00

Re: Improper image header

Postby fmw42 » 2009-11-03T13:07:15+00:00

I don't know if this will be helpful or not. I am on Mac OSX Tiger. I used GraphicConverter to create a pict image in QT format and had no problem using IM to convert it to jpg. Sorry I don't have QT Pro to test.

However, using Preview v3.09 to save to PICT and then using IM to convert to jpg, I get the following error

convert zelda4.pict zelda4_pict.jpg
convert: Improper image header `/var/tmp/magick-OtLYrHQr' @ pict.c/ReadPICTImage/871.


convert -version
Version: ImageMagick 6.5.7-4 2009-11-03 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

Here are 3 files, first two from GraphicConverter, convert fine with IM. Last one from Preview, does not convert with IM

http://www.fmwconcepts.com/misc_tests/z ... _noweb.pct
http://www.fmwconcepts.com/misc_tests/z ... qt_web.pct
http://www.fmwconcepts.com/misc_tests/z ... review.pct
fmw42
 
Posts: 2746
Joined: 2007-07-02T17:14:51+00:00
Location: Sunnyvale, California, USA

Re: Improper image header

Postby jeffATwork » 2009-11-04T14:13:13+00:00

magick wrote:We downed loaded the file. There is no readily apparent reason why ImageMagick cannot read the image. It will take some serious debugging to fix the problem. We currently do not have an ETA on when you can expect a patch.

OK.

I just verified that GraphicConverter is able to handle the PICT. So I'll go that route.

Thanks for trying it out.
jeffATwork
 
Posts: 10
Joined: 2009-01-02T14:14:45+00:00
Location: Minneapolis, MN

Re: Improper image header

Postby jeffATwork » 2009-11-04T14:15:35+00:00

fmw42 wrote:I don't know if this will be helpful or not. I am on Mac OSX Tiger. I used GraphicConverter to create a pict image in QT format and had no problem using IM to convert it to jpg. Sorry I don't have QT Pro to test.

However, using Preview v3.09 to save to PICT and then using IM to convert to jpg, I get the following error

convert zelda4.pict zelda4_pict.jpg
convert: Improper image header `/var/tmp/magick-OtLYrHQr' @ pict.c/ReadPICTImage/871.


convert -version
Version: ImageMagick 6.5.7-4 2009-11-03 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

Here are 3 files, first two from GraphicConverter, convert fine with IM. Last one from Preview, does not convert with IM

http://www.fmwconcepts.com/misc_tests/z ... _noweb.pct
http://www.fmwconcepts.com/misc_tests/z ... qt_web.pct
http://www.fmwconcepts.com/misc_tests/z ... review.pct


Yep. That looks like the Tiger version of my problem on Snow Leopard. So, it's been around for a while.

Thanks for giving it a shot!
jeffATwork
 
Posts: 10
Joined: 2009-01-02T14:14:45+00:00
Location: Minneapolis, MN

Re: Improper image header

Postby fmw42 » 2009-11-04T16:14:20+00:00

Apple must have changed something in the QT format for PICT at some point as GraphicConverter works fine to produce a PICT that IM can convert.
fmw42
 
Posts: 2746
Joined: 2007-07-02T17:14:51+00:00
Location: Sunnyvale, California, USA


Return to Users

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 6 guests