I have the following Photoshop ExtendScript (.jsx) script which rotates the image canvas, but doesn t rotate the contents:
var doc = app.open(...); // open the .png file
if (doc.width > doc.height) { // check if this document is landscape
doc.rotateCanvas(90); // rotate the canvas to portrait
// but how to rotate the contents?
}
I would like to rotate the entire image, contents included. I ve tried also rotating all the document s layers, and art layers, but nothing works.