photoshop

Looping through Photoshop layers in Javascript

送分小仙女□ 提交于 2020-01-04 02:03:42
问题 I'm trying to write a Photoshop script that will show all layers of a given name. I need to loop through all the possible nested layer sets and am using the following code: function showBounds(layerNode) { for(var layer in layerNode.artLayers) { if (layer.name == "@bounds") { layer.visible = 1; } } showBounds(layerNode.layerSets); } showBounds(app.activeDocument.doc.layerSets); But when I run it, I get the following error: Error 1302: No such element Line: 5 -> for(var layer in layerNode

Replicate Photoshop sRGB to LAB Conversion

南楼画角 提交于 2020-01-03 13:35:12
问题 The task I want to achieve is to replicate Photoshop RGB to LAB conversion. For simplicity, I will describe what I did to extract only the L Channel. Extracting Photoshop's L Channel Here is RGB Image which includes all RGB colors (Please click and download): In order to extract Photoshop's LAB what I did is the following: Loaded the image into Photoshop. Set Mode to LAB. Selected the L Channel in the Channel Panel. Set Mode to Grayscale. Set mode to RGB. Saved as PNG. This is the L Channel

Java script for “Save for Web” in photoshop not producing good quality image

北慕城南 提交于 2020-01-03 05:48:12
问题 #target photoshop var doc = app.activeDocument; if (doc == null) { throw "No Valid document available for export."; } if (doc.width != doc.height) { throw "Image is not square"; } var startState = doc.activeHistoryState; // save for undo var initialPrefs = app.preferences.rulerUnits; // will restore at end app.preferences.rulerUnits = Units.PIXELS; // use pixels // Folder selection dialog var destFolder = Folder.selectDialog( "Select Output folder"); // Save icons in PNG using Save for Web.

Getting Selected Layer or group layers array using javascript (Photoshop CS4)

百般思念 提交于 2020-01-02 19:20:30
问题 K basically I need to write a photoshop script that iterates through the selected layers and retrieve some information about them. if I can get an array of the selected layers I will be fine, I know how to do the rest, but getting that array is been a headache on its own. I know the document holds something like "activeLayers" but I get lost how to deal with levels and sublevel layers. All the layers are in a group, so if its easier, if I can get every layer in a group that would be great too

A way to convert PSD format to something Gimp can read

徘徊边缘 提交于 2020-01-02 04:46:07
问题 I have a bunch of PSD files (and more to come) and I want to get them into a format I can work with. I have had (some) success reading PSDs with Gimp before but these files won't read properly. Is there a way to convert PSDs to XCF? I have tried IrfanView which displays the PSDs alright but no conversion to Gimp's XCF. I read a (accepted) post on Yahoo Answers that says PNGs can support layers. Is this true? If so, how can I do this? 回答1: PNG is a bad choice as it won't support much of the

Swift and Xcode - How to Create Custom Tab Bar Icons

余生颓废 提交于 2019-12-31 08:08:30
问题 I have a tabbed application project I am working on in Xcode written in Swift ( Xcode 6.3 and Swift 1.2 ). I am having a lot of trouble with custom Tab Bar icons. I have designed an image in Photoshop (CS6), saved it as a PNG, resized it in Prepo to be 30x30 and imported it into Xcode in the asset library. I then set the tab view controllers icon to that image. However, it doesn't show up. I have looked at these pages but not found any help: https://www.youtube.com/watch?v=4qqqoAWNfZA Custom

Images in ie are pixelated

送分小仙女□ 提交于 2019-12-30 05:58:15
问题 I've uploaded png images to a website, and they appear perfect in firefox, chrome and safari but they look horrible in ie. I have saved the files from photoshop, and they have a feature under image size that gives you the option to have the image as: bicubic automatic, bicubic sharper, bicubic smoother, bicubic, bilinear and nearest neighbor. Would any of these help? html: <ul class="social"> <li><a target="_blank" href="https://plus.google.com/+ToadhallcottagesCoUk/posts"><img onmouseout

Best Versioning Tools to use for Photoshop/Illustrator and related binary files? [closed]

自作多情 提交于 2019-12-29 04:04:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I previously asked about Version Cue 3 vs Subversion. I think this is a better question and someone suggested http://www.gridironsoftware.com/Flow/ I hope this question will allow others to join in and suggest other tools or give specific recommendation to using Version Que versus other tools. 回答1: Take a look

Best Versioning Tools to use for Photoshop/Illustrator and related binary files? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 04:04:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I previously asked about Version Cue 3 vs Subversion. I think this is a better question and someone suggested http://www.gridironsoftware.com/Flow/ I hope this question will allow others to join in and suggest other tools or give specific recommendation to using Version Que versus other tools. 回答1: Take a look

Editing Photoshop PSD text layers programmatically

穿精又带淫゛_ 提交于 2019-12-29 03:22:10
问题 I have a multi-layered PSD, with one specific layer being non-rasterized text. I'm trying to figure out a way I can, from a bash/perl/python/whatever-else program: load the PSD edit the text in said layer flatten all layers in the image save as a web-friendly format like PNG or JPG I immediately thought of ImageMagick, but I don't think I can edit the text layer through IM. If I can accomplish the first two steps some other programmatic way, I can always use ImageMagick to perform the last