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

Save As... JPEG (Again!)

New Here ,
Jan 11, 2022 Jan 11, 2022

Copy link to clipboard

Copied

Is there a way to set the Default JPEG Save As... option as Baseline ("Standard")?

Often but not always, the button checked on entry is Progressive and 3 Scans, a format which I rarely want, and it's a nuisance to find that I've saved several Web-destined images in Progressive, and have closed the edited originals.

Thanks.

(Photoshop 21.2.12)

TOPICS
Windows

Views

426

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jan 11, 2022 Jan 11, 2022

The previous script used a custom prompt driven interface, it was a quick reworking of previous code that I had created and did not let you change quality level or other settings... You may prefer this new version that I just hacked together as it uses the standard interface, just preset as you originally requested, with the flexibility to change when required.

 

 

/*
Default JPEG Save to Baseline Standard.jsx
https://community.adobe.com/t5/photoshop-ecosystem-discussions/save-as-jpeg-again/td-p
...

Votes

Translate

Translate
Adobe
Community Expert ,
Jan 11, 2022 Jan 11, 2022

Copy link to clipboard

Copied

I am not aware of a way to preset the interface of Save...

 

Export > Save for Web (Legacy) does offer presets and flexibility with metadata.

 

The "new" Export As or Quick Export+Export Preferences does not use progressive, but is not very flexible with metadata.

 

If you always save to the same location, this can be "preset" via an action (just don't change the filename and only the save path is recorded).

 

If you save to different locations and need more flexibility such as a custom keyboard shortcut, a script would be the solution - perhaps something like this (this now performs a save as): 

 

/*
Custom JPEG Save As to Baseline Standard.jsx
https://community.adobe.com/t5/photoshop-ecosystem-ideas/option-to-disable-quot-jpeg-options-quot-pop-up-after-saving/idc-p/12662182#M12329
Stephen Marsh, 15th January 2022 - v1.0
Info: Uses a custom prompt interface to *SAVE AS* with quality level 10 standard/baseline JPEG to a user selected-folder
*/

#target photoshop

if (app.documents.length !== 0) {
	// Remove extension
	var docName = app.activeDocument.name.replace(/\.[^\.]+$/, '');
	var docNameInput = prompt('Enter a filename (without extension):', docName);
	// Remove extension
	var docNameOutput = docNameInput.replace(/\.[^\.]+$/, '');
	var docPath = Folder.selectDialog('Select a folder to save the JPEG image to...');

	// File Path & Naming
	var saveFileJPEG = new File(docPath + '/' + docNameOutput + '.jpg');

	if (saveFileJPEG.exists) {
		// true = 'No' as default active button
		if (!confirm("File exists, overwrite: Yes or No?", true))
			// throw alert("Script cancelled!");
			throw null;
	}

	jpegOptions(saveFileJPEG);

	// JPEG Options
	function jpegOptions(saveFileJPEG) {
		jpgSaveOptions = new JPEGSaveOptions();
		jpgSaveOptions.embedColorProfile = true;
		jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
		jpgSaveOptions.matte = MatteType.NONE;
		jpgSaveOptions.quality = 10;
		// Save as
		activeDocument.saveAs(saveFileJPEG, jpgSaveOptions, false, Extension.LOWERCASE);
	}

	app.beep();
	// alert('JPEG saved!');

} else {
	alert('You must have a document open!');
}

 

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

Votes

Translate

Translate

Report

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 11, 2022 Jan 11, 2022

Copy link to clipboard

Copied

LATEST

The previous script used a custom prompt driven interface, it was a quick reworking of previous code that I had created and did not let you change quality level or other settings... You may prefer this new version that I just hacked together as it uses the standard interface, just preset as you originally requested, with the flexibility to change when required.

 

 

/*
Default JPEG Save to Baseline Standard.jsx
https://community.adobe.com/t5/photoshop-ecosystem-discussions/save-as-jpeg-again/td-p/12650865
Stephen Marsh, 12th January 2022 - v1.0
Info: Uses the standard Photoshop interface with preset JPEG options
*/

#target photoshop

if (app.documents.length > 0) {
    var docName = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    try {
        // Use the previously saved path
        var docPath = app.activeDocument.path;
    } catch (e) {
        // If unsaved, prompt for save directory
        var docPath = Folder.selectDialog("Unsaved base file, select the output folder:");
    }
    saveJPEG(10);
} else {
    alert("You must have a document open!");
}

function saveJPEG(compValue) {
    // Using the standard Photoshop dialog windows
	var ID = function (s) {
		return app.stringIDToTypeID(s);
	};
	var AD = new ActionDescriptor();
	AD.putInteger(ID("extendedQuality"), compValue);
	AD.putEnumerated(ID("matteColor"), ID("matteColor"), ID("none"));
	AD.putObject(ID("as"), ID("JPEG"), AD);
	AD.putPath(ID("in"), new File(docPath + "/" + docName + ".jpg"));
	AD.putEnumerated(ID("saveStage"), ID("saveStageType"), ID("saveSucceeded"));
	executeAction(ID("save"), AD, DialogModes.ALL);
}

 

 

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

Votes

Translate

Translate

Report

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