Page 1 of 1

convert or identify cant reconginze a bad format-picture?

Posted: 2008-05-20T02:35:40-07:00
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!

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

Posted: 2008-05-20T19:33:17-07:00
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)