开发者

Using Photoshop Actions on Images uploaded by Users

开发者 https://www.devze.com 2023-03-19 12:28 出处:网络
I want to have a user upload a image to my website and have a series of Photoshop a开发者_开发问答ctions like adding a layer behind of that image, a layer infront and some dynamic text with effects ap

I want to have a user upload a image to my website and have a series of Photoshop a开发者_开发问答ctions like adding a layer behind of that image, a layer infront and some dynamic text with effects applied to it like drop shadow and gradient overlay. Is this even possible?


Have a look at Various Image Processing and Generation functions provided by PHP mainly ImageMagick & GD. If that does not prove to be sufficient,

Consider Gimp command line. you can easily invoke it from php using exec() function. GIMP is full featured & can do almost all fancy Photoshop actions you would want. And its free!

Hope it helps


PHP libraries are available to perform some basic graphics manipulation, as mentioned in the other answer. If these aren't adequate for you, it looks as though you can run and script the normal Photoshop program on your server. Photoshop is not available for Linux, so you'd probably need a Windows server. (This wouldn't be doable on shared hosting, you'd probably need a decent VPS at least.)

I haven't done this before, but according to Adobe Photoshop Scripting documentation your language choices are JavaScript and VBScript. Someone could write a PHP library to access this, but I don't know of anything like that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号