Page 1 of 1

Warnings should not stop the image conversion

Posted: 2013-10-22T23:43:52-07:00
by sireeshala
Hi ,
One image, able to open in any other image viewer though Image::read ( const std::string &imageSpec_ ) throwing an Warning exception with out updating image object.
And after handling that exception also i am unable to get the information about the image (image.density,image.type etc are set to default values).
Perhaps There should be an option to ignore the warnings in Image::read to get the conversion succeed.

https://www.dropbox.com/s/bc5td1mufn94a5i/181459.JPG

Code: Select all

Image image;
        try {
	          image.read( "181459.JPG" ); 
         }
        catch( Warning &error_ )
	      {
		  cout << "Caught warning: " << error_.what() << endl;
	      }
        Geometry gImgDensity = image.density();
        cout<<"image density"<<gImgDensity.width()<<gImgDensity.height();
Above code gives the output as 0.

Thanks in advanace

Re: Warnings should not stop the image conversion

Posted: 2013-10-23T08:37:05-07:00
by dlemstra
I can confirm this is a bug in Magick++, it will be fixed in a couple of days.

Edit: I have committed my changes, this will be fixed in the next version of ImageMagick.

Re: Warnings should not stop the image conversion

Posted: 2013-11-18T23:11:45-07:00
by sireeshala
When the next version will be available?

Re: Warnings should not stop the image conversion

Posted: 2013-11-18T23:26:13-07:00
by fmw42
Try the latest beta and see if that works.

http://www.imagemagick.org/download/beta/

Re: Warnings should not stop the image conversion

Posted: 2013-11-19T01:26:53-07:00
by dlemstra
I apologize for not including the version number. It has been fixed since 6.8.7-3.