Copy link to clipboard
Copied
When open the photo in scripts Rotate the Veticle Image??
What is Problem is script..
Thanks in Advcance..
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
var sourceFile= new File("D:/Test/IMG_3888.jpg");
var idPlc = charIDToTypeID( "Plc " );
var desc3 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
desc3.putPath( idnull, sourceFile);
var idFTcs = charIDToTypeID( "FTcs" );
var idQCSt = charIDToTypeID( "QCSt" );
var idQcsa = charIDToTypeID( "Qcsa" );
desc3.putEnumerated( idFTcs, idQCSt, idQcsa );
executeAction( idPlc, desc3, DialogModes.NO );
Copy link to clipboard
Copied
Are you sure that D:/Test/IMG_3888.jpg meta data has recorded the camera was in portrait mode capturing IMG_3888.jpg?
That Script just places in the images it does not rotate the smart object layers associated transform.
Copy link to clipboard
Copied
It's working fine for CC 2021 But CS3 is not working , when open the image in CS3 , it looks like rotate..
Copy link to clipboard
Copied
On Windows 10 the script work the same in CS3 as it works in PS 2021. Howevet Adobe System Info shows Windows NT.
Copy link to clipboard
Copied
It looks like a bug in CS3.
You can try to replace it with such actions.
1. Create an empty layer.
2. Convert it to a smart object.
3. Replace the contents of the object with this file.