|
Author |
Message |
Xqisit
Joined: 27 Jun 2013
Posts: 1
|
Posted: Thu Jun 27, 2013 5:43 am Post subject: Wanting to automate a file saving process, for images. |
|
|
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 |
|
|
|
|
Auieos
Joined: 29 Jan 2010
Posts: 2019
|
Posted: Mon Jul 01, 2013 4:33 am Post subject: |
|
|
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. |
|
|
|
|
Matias Kiviniemi
Joined: 27 Sep 2013
Posts: 2
|
Posted: Fri Sep 27, 2013 11:56 am Post subject: |
|
|
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 |
|
|
|
|
thehermit
Joined: 05 Mar 2003
Posts: 3987
Location: Cheltenham, UK
|
Posted: Fri Sep 27, 2013 2:43 pm Post subject: |
|
|
Way over my head, but if It works, kudos Matias! _________________ If life serves you lemons, make lemonade! |
|
|
|
|
|