Skip to main content
Martin Dedron
Inspiring
May 8, 2023
Open for Voting

Exporting / Saving as should be made easier and automated

  • May 8, 2023
  • 10 replies
  • 982 views

Hello.

 

As a photographer, I edit my pictures first in a non-adobe software, then I fine-tune my hero shots in photoshop. I need them all in both .TIF and .JPG.

 

The quickest way I found for that is to save them at first as .TIFF.

Then I had two options :

  1.  A shortcut for quick export, but it doesn't save the best quality JPG so...
  2.  Save all the TIFF and then run the batch process.

 

Then I have to browse through the explorer to have my images in the same folder (batch export creates one even if I select "save in the same location").

 

This is a long and uneffective process.

 

As a photographer, what I would  ideally need is being able to save in one shortcut :

- 16bits Tif

- Max quality JPEG

- Large Web JPEG

(- Small Web JPEG)

All with the EXIF ! (That's important and it somehow disappears with the batch process/quick export).

 

Indeed, I think we should be able to register in the software a multi-save pattern.

This would record the settings and we would just have to enter a file name and a location ; it would do the rest. Without subfolder.

 

If we could set up a high treshold for web images (ex: max 5mo), that would be the cherry on the cake.

 

Thanks for understanding.

Martin

 

10 replies

Stephen Marsh
Community Expert
Community Expert
August 27, 2023

@Martin Dedron 

 

Try the following code. Changes can be made if necessary.

 

/*
Save Open Raw Render to 3 Files.jsx
https://community.adobe.com/t5/photoshop-ecosystem-ideas/exporting-saving-as-should-be-made-easier-and-automated/idc-p/14040624
v1.0 - 27th August 2023, Stephen Marsh
*/

#target photoshop

var origPath = activeDocument.path.fsName;
var docName = activeDocument.name.replace(/\.[^\.]+$/, '');
var saveFileTIFF = new File(origPath + '/' + docName + '.tif');
var saveFileJPEG = new File(origPath + '/' + docName + '.jpg');
var saveFileSmallJPEG = new File(origPath + '/' + docName + '_2048px' + '.jpg');
saveTIFF(saveFileTIFF);
saveJPEG(12, saveFileJPEG);
fitImage(2048, 2048);
saveSmallJPEG(10, saveFileSmallJPEG);
activeDocument.close(SaveOptions.DONOTSAVECHANGES);


function saveTIFF(saveFileTIFF) {
    tiffSaveOptions = new TiffSaveOptions();
    tiffSaveOptions.embedColorProfile = true;
    tiffSaveOptions.byteOrder = ByteOrder.IBM;
    tiffSaveOptions.transparency = true;
    tiffSaveOptions.layers = true;
    tiffSaveOptions.layerCompression = LayerCompression.ZIP;
    tiffSaveOptions.interleaveChannels = true;
    tiffSaveOptions.alphaChannels = true;
    tiffSaveOptions.annotations = true;
    tiffSaveOptions.spotColors = true;
    tiffSaveOptions.saveImagePyramid = false;
    tiffSaveOptions.imageCompression = TIFFEncoding.NONE;
    activeDocument.saveAs(saveFileTIFF, tiffSaveOptions, true, Extension.LOWERCASE);
}

function saveJPEG(compValue, saveFileJPEG) {
    var jpegSaveOptions = new JPEGSaveOptions();
		jpegSaveOptions.embedColorProfile = true;
		jpegSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
		jpegSaveOptions.matte = MatteType.NONE;
		jpegSaveOptions.quality = compValue;
    activeDocument.saveAs(saveFileJPEG, jpegSaveOptions, true, Extension.LOWERCASE);
}

function saveSmallJPEG(compValue, saveFileSmallJPEG) {
    var jpegSaveOptions = new JPEGSaveOptions();
		jpegSaveOptions.embedColorProfile = true;
		jpegSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
		jpegSaveOptions.matte = MatteType.NONE;
		jpegSaveOptions.quality = compValue;
    activeDocument.saveAs(saveFileSmallJPEG, jpegSaveOptions, true, Extension.LOWERCASE);
}

function fitImage(fWidth, fHeight) {
    if (activeDocument.height > activeDocument.width) {
        activeDocument.resizeImage(null, UnitValue(fHeight, "px"), null, ResampleMethod.BICUBIC);
    } else {
        activeDocument.resizeImage(UnitValue(fWidth, "px"), null, null, ResampleMethod.BICUBIC);
    }
}

 

Info on saving and running scripts here:

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

Martin Dedron
Inspiring
August 16, 2023

To be as specific as possible, here is my organisation.

I have generic folders for landscape, portraits, etc. Subfolders inside of them.

This way I have my photographs organised by theme and series.

 

Then, a word about my workflow and needs.

I shoot RAW, edit the pictures in a photo software, and have two types of files as an output : 

- JPEG files, that I won't edit further.

- TIFF files, that I will probably print and refine through photoshop.

 

Those later TIFF files being the main part of my work, I need them for different uses : print, web, high-quality web, etc. 

 

The way I used to proceed is to save as Tiff in the right folder directly (for example : Landscape/Portugal2023), and to do a quick export in order to have JPEG.

The way I do now is to save just the TIFF and then, batch export as JPEG 12.

 

A big trouble I happen to have is with the metadata. It seems that for some reason both quick export and batch convert erase the EXIF. I find this troublesome.

Anyway, the feature I would like to use would be so set up a saving pattern.

 

For example : I save a TIFF (with an action shortcut), and it saves in the exact same folder the files I need.

Let's say I save my TIFF photograph as "Ploc.tiff".

It would save automatically : 

- A maximum quality JPEG version

- A JPEG that's limited to 2048 pixels in its maximum size (width or height) and maximum 5MO.

 

 

If you couled find a solution to this, it would clearly save me thousands of clicks.

 

Kind regards, 

Martin Dedron

Stephen Marsh
Community Expert
Community Expert
August 14, 2023

@Martin Dedron – You asked what specific info would help in scripting this task?

 

- 16bits Tif = TIFF save options, a screenshot would help

- Max quality JPEG = JPEG save options, a screenshot would help

- Large Web JPEG = What is the px size for the longest edge + JPEG save options, and a screenshot would help

(- Small Web JPEG) = What is the px size for the longest edge + JPEG save options, and a screenshot would help

 

Martin Dedron
Inspiring
August 14, 2023

What specific info, for example?

The idea would be to set the saving folder and the base title, then it would save in TIFF, JPEG100 and a reduced JPEG for web.

Stephen Marsh
Community Expert
Community Expert
May 15, 2023

An action modal control should allow you to change the save location on the fly:

 

https://helpx.adobe.com/au/photoshop/using/creating-actions.html#change-settings

 

Martin Dedron
Inspiring
May 14, 2023

Let's say , I have 12 folders divind my photographs into main series. Would you create a generic action and then change the path to the right folder every time?

The easiest would be to able to include a pop-up asking for the path. And then saving as I want.

Martin Dedron
Inspiring
May 14, 2023

Thank you. I will check this out.

D Fosse
Community Expert
Community Expert
May 9, 2023

Actually this isn't hard to do with actions. Editing an action step is just a double-click away. Assign an F-key, and send them on their way. And you can have nested actions.

 

Files for output are never saved anyway, the master is still there, so I send them all to an "outbox" folder on my desktop, which I flush at intervals. No reason to make this more complicated than it needs to be.

 

 

Stephen Marsh
Community Expert
Community Expert
May 9, 2023

I understand that this is an idea/feature request. While waiting for a feature that may never appear, you can look into the Image Processor Pro script, which can save up to 10 sets of images with different settings.

 

https://sourceforge.net/projects/ps-scripts/files/Image%20Processor%20Pro/v3_2%20betas/

 

An action could do this, however, the save location would always be the same.

 

Another option is a custom script, however, more specific info would be required.

Derek Cross
Community Expert
Community Expert
May 9, 2023

Export As and Save for Web are for use for saving images for the web and similar.

If you want to revert to the previous Photoshop Save As method, you can change that to legacy under the File Handling tab in preferences.