English 中文(简体)
Script that rotates a PNG in Photoshop?
原标题:

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.

最佳回答

So... uh... yeah. If you want to rotate a PNG in Photoshop, the above script would be the way to do it. Code not shown here might cause it do something different, preventing the rotate from succeeding :).

问题回答

暂无回答




相关问题
Photoshop Batch Action Save for Web and Devices

I created an Action in Photoshop CS4. It s something like this: Open Document Change Canvas Size Save for Web & Devices Close Document Now, the "Save for Web & Devices" does all nice stuff, ...

Photoshop-like, embeddable web based image editor? [closed]

Online Image Editor - Ajax or Flex / Flash? The above wasn t really the answer that I was looking for. I m looking for an online image editor which I can embed into my pages, so users can edit ...

Output W3C compliant XHTML from image slices

When slicing and saving for web in Photoshop CS4, the HTML layout output by Photoshop is done using tags, which is not what we want. Is there a way to get Photoshop to output W3C compliant tableless ...

Photoshop style GUI design

In a tool such as Photoshop, there is a selection of tools you can click on (e.g. pen, brush etc). Once you click on a tool, you can use that tool to paint, erase etc depending on what tool is ...

热门标签