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!
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!