2011-06-17 65 views
0

我有以下的Photoshop ExtendScript(.jsx)腳本,將圖像旋轉畫布,但不旋轉內容:在Photoshop中旋轉PNG的腳本?

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? 
} 

我想旋轉整個圖像,內容包括在內。我也嘗試過旋轉所有文檔的圖層和藝術圖層,但沒有任何效果。

+0

我在http://www.code4cheap.com/question/16上提供了此問題的現金獎勵 – 2011-06-17 17:29:01

回答

0

所以......呃......是的。如果你想在Photoshop中旋轉PNG,上面的腳本將是實現它的方法。這裏沒有顯示代碼可能會導致它做一些不同的事情,阻止成功旋轉:)。