Skip to main content
Participating Frequently
January 13, 2011
Answered

Programmability of Photoshop

  • January 13, 2011
  • 2 replies
  • 1034 views

I am a completely uneducated person in the graphics area, so forgive me if this is in the wrong place.

I am curious about the programmability of Photoshop (or maybe an Adobe product I don't know about). I basically need to be able to open a Photoshop file, replace a couple of predefined areas in a layer with an image, or maybe replace some text and then save the file. Ideally, I'd like to do this from C#, but I could make javascript work for me if the scripting abilities of photoshop would allow me to accomplish this. I don't want to have to open Photoshop and run a script. I've looked at the documentation and I can see how a file could be edited, but I have no idea how to start. The docs I can find seem to be to create a script for a user to run inside of photoshop.

Any help, or a point in the right direction would be appreciated!

This topic has been closed for replies.
Correct answer Paul Riggott

COM is not a problem, but I can't seem to find any reference material for it anywhere :/


All you can do is use the documentation for javascript as a startting point then in C# it is fairly intuitive...

2 replies

Paul Riggott
Inspiring
January 13, 2011

Have a look at "Data Driven Graphics" it may do what you want...

http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7416a.html

c.pfaffenbichler
Community Expert
Community Expert
January 13, 2011
I basically need to be able to open a Photoshop file, replace a couple of predefined areas in a layer with an image, or maybe replace some text and then save the file.

Actually you may be better of with Indesign, as it sounds like pretty straightforward layout tasks.

Could you show an example of an image and the intended changes.

I don't want to have to open Photoshop and run a script.

A couple of the regulars here may have more insight on that, but Photoshop Scripting as I understand it requires Photoshop to run.

I have heard about some server-solutions for indesign-pdf creation, though, that run »command-line« style (if that’s the correct term) … but I have to say that that’s beyond me.

Participating Frequently
January 13, 2011

Below are a few examples (I just grabbed this from our website). The idea would be for designers to create a design with areas of editable text or images. I want to allow a user to upload a picture and then use it in the design, or specify the text that goes in a text area. But, I don't want the user to have to know anything about imaging software. For example, the card on the right says "From all of us at the PARTY HOUSE", I'd like a user to be able to give me some text and I place it there, or a user uploads a photo, and I put it where the picture is in the middle card.

Participating Frequently
January 13, 2011

All you can do is use the documentation for javascript as a startting point then in C# it is fairly intuitive...


Awesome, Paul! That will definitely get me started.