Slightly more information,
I'm trying to return a decoded image to a calling function.
I receive the encoded data, decode it by constructing the MagickImage, passing in encodeddata and readSettings.
use image.Write to save the decoded data.
The original data is MagickFormat.G4, CompressionMethod.Fax.
I note that when I call image.Write,
the Format is now MagickFormat.Bmp (because I set it), but the Compression is still Fax, because I haven't changed it to anything else.
Am I taking the right approach, given the requirement?
Weirdly the code works at normal runtime. It's just in test mode it fails.
I think it's something to do with timings/multi-threading. However, as it's so repeatable, I feel something needs fixing/explaining in the write method.
Hi,
Not yet, but I currently think the problem lies else where.
Happy to have it left with me, unless I come back.
I'll confirm if I resolve the problem - not currently full time on this, so unsure of timescales.
Martin