Copy link to clipboard
Copied
Photoshop doesn't allow banknote images editing that's fine.
But we have an application in c# which opens files in photoshop and performs some action.
Now if the image is a banknote image then photoshop throws an exception saying it doesn't allow editing banknote images.
How to catch this exception in c#?
How to identify if an image is a banknote image before opening it in photoshop using photoshop.dll COM interop in c#?
Copy link to clipboard
Copied
Either pass the image to an opencv library for C# (libvips, emgu.cv), find a data set containing currency and check against it all the while still in C# or handle it through an exception as you would handle any other corrupt file... Once in Photoshop, you'll get the error and will need to handle it via exception handling.