Copy link to clipboard
Copied
Is there a way when I have the image/photo open in photoshop to change the view size setting. it's at 16.3% I would like to keep it at 25%, especially when I crop.
Thank you!
1 Correct answer
You can use the Script Event-Manager and this script...
setZoom( 25);
function setZoom( zoom ) {// as percent
cTID = function(s) { return app.charIDToTypeID(s); }; // from xbytor
var docRes = activeDocument.resolution;
activeDocument.resizeImage( undefined, undefined, 72/(zoom/100), ResampleMethod.NONE );
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putEnumerated( cTID( "Mn " ), cTID( "MnIt" ), cTID( 'PrnS' ) );
desc.putReference( cTID( "null" ),
...
Explore related tutorials & articles
Copy link to clipboard
Copied
Copy link to clipboard
Copied
There isn't option in Preferences for percentage view settings or magnification level when opening/cropping images. You can not record action for this purpose either. You can record step in action to fit on screen but not to set magnification level to any particular percent beside hundreed 100% and two hundreds 200% what is available from View menu
Copy link to clipboard
Copied
Agreed, however, it is possible to chain together available zoom levels to create an action that can reach 25% by starting at 100% then zooming out 4 times. Sure it’s clunky, but it works:
Copy link to clipboard
Copied
You can use the Script Event-Manager and this script...
setZoom( 25);
function setZoom( zoom ) {// as percent
cTID = function(s) { return app.charIDToTypeID(s); }; // from xbytor
var docRes = activeDocument.resolution;
activeDocument.resizeImage( undefined, undefined, 72/(zoom/100), ResampleMethod.NONE );
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putEnumerated( cTID( "Mn " ), cTID( "MnIt" ), cTID( 'PrnS' ) );
desc.putReference( cTID( "null" ), ref );
executeAction( cTID( "slct" ), desc, DialogModes.NO );
activeDocument.resizeImage( undefined, undefined, docRes, ResampleMethod.NONE );
}
Copy link to clipboard
Copied
Here is my tutorial on how to use Script Events Manager https://www.designeasy.co/2011/06/automate-photoshop-with-script-events.html and https://www.designeasy.co/2018/06/how-to-automate-boring-tasks-using.html Feel free to ask any additional question if you need more help.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied

