I’m creating a web service which revolves around users creating custom image files from details they enter on the webpage. I have the PSD files completed, along with the accompanying scripts, but how can I launch the Photoshop scripts directly from my PHP code?
I looked into using Droplets, but from what I can see I can only use these to perform recorded actions on a file.
2
Answers
Looks like the only way it can be done is to record an action loading the script and create a Droplet out of the action, then execute it from PHP passing the PSD as a parameter. It's not as elegant as I wanted, but there doesn't seem to be any other suggestions.
It’s sort of possible, but you’ll need to provide more details about what you wish to accomplish. Would this server be a mac or windows? Something that was capable ofrunning Photoshop.
Here’s an inline example of executing a PS script with Photoshop from PHP on a mac within Terminal.
Or better yet, use the Symfony Process and Filesystem components to manage this.