• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

identify photoshop banknote exception in c#

New Here ,
Oct 07, 2020 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

193

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
community guidelines
Adobe
Explorer ,
Oct 07, 2020 Oct 07, 2020

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines