Skip to main content
Beachcolonist
Inspiring
October 3, 2019
解決済み

Can I set JGP compression choice in "save as" dialogue to be "baseline optimized" by default?

  • October 3, 2019
  • 返信数 4.
  • 783 ビュー

"Save as" for .jpg offers 3 compression choices: baseline, baseline optimized, or progressive. As you can see in the attache file the choices are radio buttons. You never know which will be preselected when you go to save (although Photoshop sometimes displays the last option used, sometimes it does not.)

 

 

I use the keyboard as much as possible, & I use baseline optimized 98% of the time. When Photoshop offers one of the other choices I have to reach for the mouse to change back to baseline optimized, my question is: is there a way to make Photoshop display only "baseline optimized," or default to it exclusively every time? Alternately: I can tab to the radio buttons, but I do not know how to select a radion button via the keyboard ("Enter" simply closes the dialog, nor does "+" select the focused button).

 

And please don't say Photoshop always displays the last used option, it does not just like it does not always retain the same numerical quality setting. The "save as" dialog does not appear in "Edit/menus" so please don't suggest I look there.

 

Thanks!

 

 

 

 

 

 

このトピックへの返信は締め切られました。
解決に役立った回答 Sebastian Bleak

Hi,

I don't know if you can set it as a default but I think on a Windows machine you can Tab over to the option you want (Baseline Optimized) and hit the Spacebar when it is highlighted to select it. Sorry I don't have a Windows machine infront of me but I use them at some client locations. Give it a shot and let me know if it works. 

返信数 4

Stephen Marsh
Community Expert
Community Expert
October 3, 2019

It is also possible to preset using actions. If the action is created to a save location that is no longer valid, then that part of the action becomes "generic" alowing one to save to an alternate location while keeping all other recorded properties by default.

 

 

 

Beachcolonist
Beachcolonist作成者
Inspiring
October 3, 2019

Thanks S Marsh, you are correct technically but using an action here has slowdown issues for some workflows, because finding the action requires switching to & scrolling the actions, so is as difficult as switching to the mouse to choose the radio button ie one must leave the keyboard, where my goal is to stay on it.

I was seeking the solution that was in the keygboard workflow already in progress, the best and most simple and obvious is to use the space bar to select the right compression after tabbing to that choice it if it not already selected by Photoshop. Part of the problem is yes that the files are coming out of a browser, but into various locations, so an action becomes involved for many files not already in a folder, or already open. So there is no time saving but absolutely, thank you the idea is important for the full bag of work tricks.

 

Now I need to label this question solved to end this debate!

Beachcolonist
Beachcolonist作成者
Inspiring
October 3, 2019

Thanks Sebastion - simply use spacebar to select a radio button! I see radio buttons so rarely the key slipped my mind, perfect solution, easy. Thanks again.

Chuck Uebele
Community Expert
Community Expert
October 3, 2019

You can indirectly. You can use this script which will always bring up baseline optimized. You can also set the quality to what you want. Right now it's on 8. Create an action and record running the script. Then you can assign a hotkey to run it quickly.

var doc = activeDocument;
var f = new File('~/desktop/'+ doc.name)

var idsave = charIDToTypeID( "save" );
    var desc9 = new ActionDescriptor();
    var idAs = charIDToTypeID( "As  " );
        var desc10 = new ActionDescriptor();
        var idEQlt = charIDToTypeID( "EQlt" );
        desc10.putInteger( idEQlt, 8 );//change quality
        var idOptm = charIDToTypeID( "Optm" );
        desc10.putBoolean( idOptm, true );
        var idMttC = charIDToTypeID( "MttC" );
        var idMttC = charIDToTypeID( "MttC" );
        var idNone = charIDToTypeID( "None" );
        desc10.putEnumerated( idMttC, idMttC, idNone );
    var idJPEG = charIDToTypeID( "JPEG" );
    desc9.putObject( idAs, idJPEG, desc10 );
    var idIn = charIDToTypeID( "In  " );
    desc9.putPath( idIn, new File( f) );
    var idDocI = charIDToTypeID( "DocI" );
    desc9.putInteger( idDocI, 248 );
    var idCpy = charIDToTypeID( "Cpy " );
    desc9.putBoolean( idCpy, true );
    var idsaveStage = stringIDToTypeID( "saveStage" );
    var idsaveStageType = stringIDToTypeID( "saveStageType" );
    var idsaveSucceeded = stringIDToTypeID( "saveSucceeded" );
    desc9.putEnumerated( idsaveStage, idsaveStageType, idsaveSucceeded );
executeAction( idsave, desc9, DialogModes.ALL );
app.displayDialogs = DialogModes.NO;

 

Beachcolonist
Beachcolonist作成者
Inspiring
October 3, 2019
Chuck this is fantastic thanks. As you may see, I also was informed how to simply select a radio button via the keyboard. Your solution will not only be interesting to study, but it looks like it holds a lot of new pathways to other like solutions. Thanks again.
Sebastian Bleak
Community Expert
Community Expert
October 3, 2019

Hi,

I don't know if you can set it as a default but I think on a Windows machine you can Tab over to the option you want (Baseline Optimized) and hit the Spacebar when it is highlighted to select it. Sorry I don't have a Windows machine infront of me but I use them at some client locations. Give it a shot and let me know if it works.