changeMode() or Conditional Mode Change in C#
Hello everybody,
I'm running a windows-service using Adobe PShop CS 3 for graphics conversion.
But for some graphics my conversion fails. I figured out that the problem is the Colormode.
If its set to RGB everything is fine but when the source-graphic has colormode bitmap it fails.
now I have to convert every graphic to rgb before conversion. I found the changeMode() method in the photoshop interop package, but theres a problem with the second parameter :
mobjDoc.ChangeMode(PsChangeMode.psConvertToRGB, Object Options)
How to build a proper options-Object for this command?
and is there any API or something similar for the Photoshop.Interop
A fallback solution would be scripting with the conditional mode change script. but I have no idea to implement it in a propoer way so no user interaction is needed.
A other fallback solution would be the save for web option or saveAS jpeg.... but there is no save for web method in c# and the saveAS could not save as jpeg 😞
thanks in advandce
Best regards
Moritz