Thank you very much for quick answer!
Are you sure this feature works as expected?
I'm setting Interlace property to NoInterlace, saving my Image and everything is fine. When I open this image again, I see the Interlace property becomes NoInterlace, but when I open this image in Photoshop I see that Format Option didn't change.
What's the magic here?
I attached my method below.
Are you sure this feature works as expected?
I'm setting Interlace property to NoInterlace, saving my Image and everything is fine. When I open this image again, I see the Interlace property becomes NoInterlace, but when I open this image in Photoshop I see that Format Option didn't change.
What's the magic here?
I attached my method below.
public static void ChangeJpegFormatOption(string sourcePath)
{
using (var magickImage = new MagickImage(sourcePath))
{
if (magickImage.Interlace == Interlace.Jpeg)
{
magickImage.Interlace = Interlace.NoInterlace;
SaveImage(sourcePath, magickImage);
}
}
}