Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: MagickImage.Write throws MagickCoderWarningException

$
0
0
I am reading two PNGs into two MagickImage instances, calling Merge on a MagickImageCollection of them, and then calling Write on the merged image.

Usually this works fine, but with one pair of images, Write throws a MagickCoderWarningException ("Magick: Not recognizing known sRGB profile that has been edited `...' @ warning/png.c/MagickPNGWarningHandler/1832").

The file is created, and since it is a warning, I trust that the file is correct.

However, if it is just a warning, it seems to me that Write should return a MagickWarningException, like Read, rather than throw it. Otherwise every call to Write needs to be wrapped in a try/catch block, which is the workaround I will use for now.

P.S. Thanks for this great library!

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>