Skip to main content
Participant
October 7, 2020
Question

identify photoshop banknote exception in c#

  • October 7, 2020
  • 1 reply
  • 244 views

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#?

 

This topic has been closed for replies.

1 reply

Known Participant
October 8, 2020

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.