Code: Select all
Image img;
try
{
img.read(argv[1]);
}
catch (exception& ex)
{
cout << "Caught: " << ex.what() << endl;
}
Code: Select all
Caught: Magick: Corrupt JPEG data: 3052 extraneous bytes before marker 0xd9 `2011-02-27_16-04-00_280.jpg' @ jpeg.c/EmitMessage/227
Not continuing - bad image.
imageTest: magick/semaphore.c:288: LockSemaphoreInfo: Assertion `semaphore_info != (SemaphoreInfo *) ((void *)0)' failed.
Aborted
Ubuntu 10.04
Default libmagick++-dev version from the repositories
$ echo `dpkg -l |grep magick++-dev`
ii libmagick++-dev 7:6.5.7.8-1ubuntu1.1 object-oriented C++ interface to ImageMagick
Thanks.