PhotoshopForums.com Home
Navigate Contact FAQ Search Members
Wanting to automate a file saving process, for images.
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> Actions and Automation
 See a User Guidelines violation? Please contact us.
Author Message

Xqisit

Joined: 27 Jun 2013
Posts: 1



PostPosted: Thu Jun 27, 2013 5:43 am    Post subject: Wanting to automate a file saving process, for images. Reply with quote

Hello, I'm working with large batches of JPG photos (portraits), where I open the JPG in photoshop, and use the marquee tool to select the head+shoulder area, and copy and paste it to a new document that is a preset size. I then remove the background and save it as a PNG.

The process I want to automate, is file saving. The PNGs need to have the same name the jpgs did originally, except obviously in png format. I'm on a Mac, so right now, when I'm done, I go save as (CMD+Shift+S) then I click the original JPG in the finder window so it picks up the name (they're long file names) then tell it to save as a png in a new folder.

Is there anyway I can have it so it saves into a new folder, but picks up the correct file name along the way? I know there probably isn't, but I thought I'd check

If you have any suggestions let me know :)
View user's profile Send private message

Auieos

Joined: 29 Jan 2010
Posts: 2019



PostPosted: Mon Jul 01, 2013 4:33 am    Post subject: Reply with quote

I think you're out of luck as far as local knowledge here.

Would not be surprised at all if there was a way to do this once you get into Photoshops scripting language however the effort vs reward may not be worth your time.

Might be worth paying someone with in-depth knowledge on the subject to write a script for you depending on how often you have to do this type of work.
View user's profile Send private message

Matias Kiviniemi

Joined: 27 Sep 2013
Posts: 2



PostPosted: Fri Sep 27, 2013 11:56 am    Post subject: Reply with quote

The Javascript scripting is not too bad. You basically have access to all open documents and then there is a command for pretty much any command you can click with a mouse.

Below would save open document as png and close without saving (assuming you crop in place)
var PNG_OPTIONS = new PNGSaveOptions()
var doc = app.activeDocument
var file = new File(doc.path + doc.name + ".png")
app.activeDocument.saveAs (file, PNG_OPTIONS, false, Extension.NONE)
file.close()
file = null
doc.close(SaveOptions.DONOTSAVECHANGES)
doc = null
View user's profile Send private message

thehermit

Joined: 05 Mar 2003
Posts: 3987
Location: Cheltenham, UK


PostPosted: Fri Sep 27, 2013 2:43 pm    Post subject: Reply with quote

Way over my head, but if It works, kudos Matias! :)
_________________
If life serves you lemons, make lemonade!
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PhotoshopForums.com Forum Index -> Actions and Automation All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Contact - User Guidelines >

Copyright © 2003-2016. PhotoshopForums.com, iFroggy Network. All Rights Reserved.
Powered by phpBB © phpBB Group. phpBB SEO. Privacy Policy.
We are in no way affiliated with Adobe. Photoshop, Adobe and related marks are registered trademarks of Adobe.
PhotoshopForums.com