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

Batch transforming images

New Here ,
Jan 05, 2009 Jan 05, 2009
Hi,

I am evaluating if photoshop can help me save loads of my image transforming time.

I need to automate the process of warping image files based on predefined custom warp. Example- a batch process to read an image file, then select the warp layout (if image is a scenery then warp is a custom coffee cup, if image is logo then warp is a custom warp of a watch). I will be making the warp layout myself.

I have the logic of identifying the content in the image sorted.

Now will PS scripting allow me to make a custom warp and then apply in batch?
If yes, please suggest if I can see an example or read a document somewhere.

Thanks in advance for your help.

Ash
TOPICS
Actions and scripting
1.3K
Translate
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
Community Expert ,
Jan 06, 2009 Jan 06, 2009
You better wait for some of the more experienced Scripters who frequent this forum to advise You, but as warping seems to be recordable with the Scripting Listener (see »Photoshop CS4 Scripting Guide.pdf«) I see no reason why the warping shouldnt work.
What do You mean with »the logic of identifying the content« exactly though? Have You been able to bring those criteria in a usable Script-form yet?
And what is Your alternative (as »if photoshop can help me save loads of my image transforming time« seems to imply that You are currently doing with another program)?
But I guess the whole thing is kind of a tall order.
Translate
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
New Here ,
Jan 06, 2009 Jan 06, 2009
Thanks Christof, »the logic of identifying the content« is done at our site (internal use only I cant share). The user has to go through the choices and that is how we know what he/she has picked.

Currently we do the warping manually.

I will have a read of the pdf and revert with questions. Meanwhile like you suggested I will wait for some more script experts to respond.
Translate
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
Community Expert ,
Jan 06, 2009 Jan 06, 2009
The manual warping is done in Photoshop though?
Translate
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
New Here ,
Jan 07, 2009 Jan 07, 2009
No we use other software for this, which is party developed by us. I am evaluating if we could use Photoshop.
Translate
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
Community Expert ,
Jan 07, 2009 Jan 07, 2009
Are You familiar with the Warp in Photoshop?
Because in Photoshop there is a feature called »Warp« but that lets You transform content basically only by manipulating the four corners, their bezier-handles, segments of one ninth of the area and the lines separating thirds of the height and width.

Could You post a link to some files You achieved with the current workflow?
Translate
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
New Here ,
Jan 08, 2009 Jan 08, 2009
Yes I have used it at a friend's place. The Bezier handles or the vector capability and 4 corners are sufficient for us.
Can you tell me something - If suppose I adjust the Warp grids and bezier handles to a form then is it possible to save the setting under a name and then apply these to another new image?
Translate
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
Guru ,
Jan 08, 2009 Jan 08, 2009
You could use scriptlistner (it ships with Photoshop) to make a function for each of you custom warps. But it will be recorded in pixels so all of your images will be need to be the same. Or have the script adjust the function for the differences in size.

While it is true that there are only 4 points, you can click and drag anywhere in the bounding box to edit the warp.

You could also make a template by warping a smart layer. Then all you would need to do is replace the smart objects contents by choosing Layer->Smart Objects->Replace Contents. The new contents will have the same warp. But again the images need to be the same size.

Mike
Translate
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
Community Expert ,
Jan 08, 2009 Jan 08, 2009
I think Warps-presets are not an option, but like Michael mentioned Warping is recordable as a Script. Though for practical reasons You should do the Warp perfectly for the recording.
As regards the size-matter, resizing and cropping (if necessary) the images prior to the Warping should be no problem within a Script.
Translate
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
New Here ,
Jan 09, 2009 Jan 09, 2009
Hi Mike and Christoph,

The solution you suggested sounds very convincing.

Thank You very much.

Now I have get hold of trial version and try your recommended solution.

hmmm...task 1.. donwload trial version.

See you here soon.
Translate
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
New Here ,
Jan 17, 2009 Jan 17, 2009
LATEST
Hi,

I am back!! But of course after a successful step. Thanks to this forum. Now I have a new issue.

I followed Mike and Christoph's suggestion and finally I was able to automate using Smart Layer.

Now the issue I have is I am unable to invoke the script over internet. To test if I can, I am using one of the sample scripts provided by Adobe Photoshop. The script runs fine when I issue on command line, but fails to execute successfully when it is called using CGI Perl.

To call the script over internet, do I need to verify Photoshop's entry in registry etc.?

Will appreciate any help in this.

Thanks.
Translate
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