Highlighted

identify photoshop banknote exception in c#

New Here ,
Oct 07, 2020

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

 

TOPICS
Actions and scripting

Views

62

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

identify photoshop banknote exception in c#

New Here ,
Oct 07, 2020

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

 

TOPICS
Actions and scripting

Views

63

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 07, 2020 0
jefbr LATEST
Community Beginner ,
Oct 07, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 07, 2020 1