You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you sure that watermarkImage is referring to an image file correctly? I just tried with similar code and it worked fine.
btw, you may use the conditional extension methods to simplify the code as below:
using(varimg=Image.FromFile("wwwroot/images/image.png")){// replace 'true' with the relevant condition checkimg.AddTextWatermarkIf(true,"TEXT WATERMARK").AddImageWatermarkIf(true,"wwwroot/images/logo.png",newImageWatermarkOptions{Opacity=30}).SaveAs("wwwroot/images/new.png");img.Dispose();}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I find "A generic error occurred in GDI+" error when i call AddImageWatermark in async for several time
anyone can help me?
Beta Was this translation helpful? Give feedback.
All reactions