Last post Oct 22, 2019 06:22 AM by N1ZAM
Aug 14, 2019 06:50 AM|N1ZAM|LINK
Aug 14, 2019 07:14 AM|AddWeb Solution|LINK
const string i1Path = @"c:\my\i1.jpg";
const string i2Path = @"c:\my\i2.jpg";
var i = Image.FromFile(i1Path);
var i2 = new Bitmap(i);
Reference Link :
Aug 15, 2019 06:27 AM|Yuki Tao|LINK
According to your code,there are some custom methods or other methods(isValidFile(),Watermarker()..e.g.)
that don't let me understand and reproduce your issue.
But based on your error message:
System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI
We can find some information online to troubleshoot:
1.Check your folder's permission where the image is saved Right cLick on folder then go :
Properties > Security > Edit > Add-- select "everyone" and check Allow "Full Control"
2.Check if the path is wrong
More details,please refer to:
Oct 22, 2019 06:22 AM|N1ZAM|LINK
Finally I could resolve the issue at my end. Thanks for your time.