Having a code that works for ages when loading and storing images, I discovered that I have one single image that breaks this code:
const string i1Pa
Open in the program
const string i1Path = @"c:\my\i1.jpg"; const string i2Path = @"c:\my\i2.jpg"; var i = Image.FromFile(i1Path); i.Save(i2Path, ImageFormat.Jpeg); i.Dispose();