convert or identify cant reconginze a bad format-picture?

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
dcl

convert or identify cant reconginze a bad format-picture?

Post by dcl »

convert or identify cant reconginze a bad format-picture?
i just rename a .c file to .jpg, convert or identify will be locked without any diagnostic information.

code stop here:

Code: Select all

images=ReadImage(image_info,exception);
how could i skip these bad-format files?

thank you very much!
dcl

Re: convert or identify cant reconginze a bad format-picture?

Post by dcl »

convert can work properly in windows and linux :)
but it reports segmentation fault in cygwin:(

in windows and linux, if convert a bad-format file, it will say "convert: Improper image header `xxx.gif'." very quickly.
but in cygwin, convert will wait a very long time and report segmentation fault

it is a bug of cygwin ?
IM version : 6.4.0


$ ./test.exe 00133.gif 1.jpg
test.exe: Improper image header `00133.gif'.
error!
8 [main] test 2876 _cygtls::handle_exceptions: Error while dumping state (
probably corrupted stack)
Segmentation fault (core dumped)
Post Reply