Questions tagged [photoshop-scripting]

Questions about the automation and extending of functionality through the use of scripts within Adobe Photoshop.

Filter by
Sorted by
Tagged with
24
votes
6answers
147k views

How to center text vertically within a textbox in Photoshop

It's pretty annoying that you can't center text vertically in Ps automatically, like you can in Indd. It's even more annoying that the bounding box of text can't be 'collapsed' or 'fit to text', like ...
14
votes
3answers
170k views

How to automatically save each layer as its own png/jpeg while keeping one main layer above

We offer vinyl decals for many devices. To show what a design looks like on a device, we have to create a main layer of the device, having the place of where the skin would fit cut out for our ...
12
votes
6answers
3k views

How to repeat a gradient multiple times in Illustrator and Photoshop?

How to repeat a gradient 'n' times, for example, repeating black to white gradient 5 times (along the path of stroke) like I've done manually in below example image. Is there a way to automate it to ...
12
votes
2answers
86k views

How to export/import a Photoshop action from one Windows computer to another?

I switched computers and I need a Photoshop action I used on the previous computer. None of the instructions I found online helped so far. :( I call the action on the old computer (Windows 7, ...
9
votes
3answers
17k views

Replace individual colors in multiple layers

The goal Replace individual colors in a multi-layer Photoshop document in a way that is flexible and efficient enough to be done a multiple times in the production process—like when I need to update ...
8
votes
9answers
40k views

Exporting groups of layers from a PSD to a single PNG file using Photoshop

What is the fastest way by which I can save a group of layers as a single .png file with empty spaces around the group of layers trimmed. I know I can run a script to export every single layer to a ....
8
votes
5answers
9k views

Font Awesome as Photoshop Custom Shape Set

Everytime I need to use font awesome in photoshop, I'll always copy an icon from website and paste in photoshop. I can print it into pdf and copy into illustrator as vector but I want them as ...
7
votes
2answers
4k views

Can I automate saving different combinations of layers?

I have a source file for an icon. It has a base layer which is the icon background, and a number of layer folders, each of which contains layers for each individual icon. There are 20 or so of these ...
7
votes
2answers
965 views

How can I get the boundaries (width & height) of the current clipboard image?

To reproduce what I'm looking to do with scripting (JSX) in Photoshop: Select part of image with transperant background (no background layer) Copy File -> New *1 Paste *1 - Photoshop will ...
6
votes
1answer
850 views

Selecting pixels by specification in Photoshop

I use Photoshop for carpet designing. My typical artwork is 1800 × 2400 pixels with 8 or 10 colors. Each pixel's position and color is important. The weaving macine which outputs the carpet can'...
6
votes
1answer
1k views

Is there a way to create a dockable palette for Photoshop with ScriptUI?

I am using ScriptUI for the first time and would like to create a custom palette with several text boxes and buttons that can be conveniently docked into the Photoshop UI. Can this be accomplished ...
6
votes
2answers
1k views

Ending a Photoshop script when no layers are selected

I've been working with a function I found on stackoverflow here that works as far as I can tell by grouping the layers, dumping layer names into an array then ungrouping them. function ...
5
votes
2answers
975 views

How to batch rotate image to make them all landscape?

I have a thousand of pictures of the same fixed scene, but for an unknown reason some of them are vertical, not horizontal. So I would like to batch process all the images and rotate them 90° if the ...
5
votes
6answers
28k views

How can I include a Photoshop file inside another Photoshop file?

If one was designing a website where they laid out each page mock as a separate photoshop file but each one had the common elements of the site such as the header and footer, but also could have ...
5
votes
3answers
44k views

Open a Photoshop document layer in a new File quickly?

My First Question here, I have a lot of PSD's to work on in which my main job is to: Copy a layer/layers Make a new Document place/drag them into the new document Trim the image to size Save as a ...
5
votes
4answers
99k views

How to export layers to pages of a pdf file in Photoshop CS5

I need to save each layer of my psd document as a page in a multi-page PDF file (or as a single-page PDF file each as I can combine them later). File->save as->PDF works for 1 layer at a time, but I ...
5
votes
4answers
8k views

Create a sprite using a sequence of images photoshop

I would like to create a horizontal image sprite for use in a jQuery animation, how would i create a sprite from 190 images in a folder (around 220kb each file) into a single horizontal sprite?
5
votes
1answer
4k views

How do you create custom scripts for automation in Photoshop?

I have been recording custom actions to perform various automations, though I am starting to require greater control which would be better implemented using some form of scripting (if this can indeed ...
5
votes
1answer
213 views

how is this picture made?

Good day guys, i have to something like this, any idea how is this picture made ? so it looks like negative i did invert it in photoshop but the bright side of his face was blue, so there been ...
5
votes
4answers
70k views

how to open mutliple pdf pages in photoshop

I am actually trying to save all pages in the pdf as a png image but here i can't open all pages in one time. i have read here for how to open pdf pages I have to open one by one and then i am saving ...
5
votes
2answers
3k views

Batch Place Multiple Linked Files in Photoshop

So I've got an insane amount of images to process through Photoshop, and I've worked it out that linking them is my best bet. Has anyone come across a script or action that would allow someone to ...
5
votes
0answers
446 views

Script to pick closest Pantone from CMYK reference in Photoshop

I'm trying to script the process of selecting the closest Pantone+ Solid Coated colour from a CMYK reference in Photoshop. Manually the process is: Click on the Foreground Color picker. Enter a CMYK ...
4
votes
3answers
12k views

When saving as a PSD, have a PNG also saved automatically

On Photoshop CS5, I had it set up so that whenever I saved a .psd, whether it were through cmd-s or the file menu, it would also save a file as a .png with the same name. I upgraded to CS6 and now I ...
4
votes
2answers
124 views

how to create a UV mapping (?) of a texture onto a product photograph based on a calibration pattern

UPDATE: Here you can download high quality images of calibration patterns as well as them printed on socks if anyone wants to give this a go Pardon my lack of vocabulary, this is not my area of ...
4
votes
3answers
4k views

Export Photoshop swatch sheet to a human-readable document

I need to export a Photoshop swatch file to a human-readable document with RGB, HSB, HEX values and the name of the swatch. Is there any tool which can export swatches to this kind of a document?
4
votes
1answer
3k views

Can I add 'Export As' to an action script?

Could somebody explain how I can add 'Export As' as an action script in Photoshop CC 2015? I just want to automate saving icons to svg.
4
votes
1answer
121 views

Curves automation in Adobe Photophop (CS 6)

I have some microscopy photographs with different exposures. The grayscale images will be used for comparison next to each other. Currently, to 'normalize' the differences in the pictures I tweak the ...
4
votes
2answers
16k views

How to change colour across multiple layers in Photoshop CS6

I've seen this type of question asked before, but I've not seen a satisfactory answer: I have a specific colour palette, and I can not stray from it at all; I have a specific green (32,144,24) on 93 ...
4
votes
1answer
1k views

Is there an automated, configurable way to organize many layers into a sprite sheet grid with exact pixel coordinates in Photoshop?

I have a huge grid of icons that need to be positioned so that I can write sprites out of them after I'm done. Right now, I have so many layers, it'd take me forever to click on each one ...
4
votes
2answers
3k views

How to export slices to PSD in Photoshop CS5

I have a big PSD file with many slices, and I would like to have all those slices in new separate PSD files. Is there a way to export a slice to a PSD ? And automate this action using a script/action ...
3
votes
3answers
772 views

Photoshop Local Zoom?

Is there anyway to zoom in on only a portion of an image without enlarging the entire document? I know that you can create a second window for the same document, put the windows side by side, and ...
3
votes
2answers
2k views

Automation of repetitive tasks in Photoshop?

Is there a way to automate some highly repetitive tasks in Photoshop? Example 1 I have a folder of images. For each of them, and I want to import each as its own layer I'd like them to be resized ...
3
votes
2answers
552 views

How to find the nearest color from a list of 9 in Photoshop?

I've a picture of an static object correctly balanced and exposed: I would like to sample the nearest color from my own palette of 9 RGB or Lab using Photoshop: Colour palette: #8270a4 #aa83cb #...
3
votes
2answers
2k views

Can I modify text within Photoshop files programmatically?

What I want to do is to be able to code a script which will change a text layer from a Photoshop file for another text in my script. Is there anyway this can be done? Is there any Photoshop API or ...
3
votes
1answer
88 views

How to automate four-up photo creation

I've got a large number (about 300) of 4x6 photos that I want to reformat by making each into a 2x3 photo, and making one 4x6 composite image from 4 of these. (I want to make them smaller because ...
3
votes
2answers
326 views

Exported PNG is heavy sized than generated by Save For Web

I've made a script which is being used in HTML panel for saving files as PNG or JPG based on selected option! below is my code. function saveMain() { var finalName = userName.replace(...
3
votes
1answer
2k views

Advice on batch exporting sections of an image

I have a large PSB file (33600x19200px) and I need to write a script to export sections of this image as a series of images. What would the best approach be ? Initially I thought about scripting ...
3
votes
3answers
4k views

Photoshop CS6 - Get width of paragraph text in pixels by script

Is there any way to get the width of the text inside a paragraph box? The measurement would not take into account the wrapping. That is, it would equal the sum of each wrapped line. I'm not asking ...
3
votes
2answers
4k views

Photoshop: Batch Fit Image x Bicublic Sharper?

1) By File -> Automate -> Fit Image..., we can fit images of any size or orientation into a particular frame size. But we cannot specify the resample method, like Bicublic Sharper. In fact we ...
3
votes
2answers
623 views

How to automate some picture manipulation (define a crop and apply a crop) in photoshop?

I am currently working on a lot pictures (around 1000) and would like to automate some tasks: define a crop region that correspond to specific aspect ratio. For example if i have a width/height = 16/...
3
votes
1answer
3k views

Can I stop Photoshop from asking for interlaced option when saving a PNG format?

I never want my PNGs to be interlaced. So I wish I could set a bunch of option defaults in the application so that I am saving time when outputting a lot of images as PNG over the course of a day ...
3
votes
2answers
528 views

How to Generate Swatch Library from Json file?

I'm looking for a way to generate a swatch library from a JSON file in Adobe Photoshop CS6. Unfortunately, I can't seem to find anything on the web about this, and I don't know how to write my own ...
3
votes
1answer
583 views

How to assign a hotkey to “No Break”

How can I assign a hotkey to “No Break” function on Character panel? Or maybe write a script and create a custom panel? But how I access to this function is PS JS model? Character is exist in Menu ...
3
votes
2answers
978 views

How to get an Illustrator script to see the visible size of clipped art instead of the art's orginal size?

When I use an Illustrator script using visible bounds or selection size on clipped art, the script sees the original size of the clipped art as the groups's size instead of its visible (clipped) size. ...
3
votes
2answers
2k views

Photoshop: Get x/y origin of paragraph text box via Javascript

Is there any way to get the x/y position of the origin of a paragraph text box via Javascript, excluding use of the Photoshop UI? This image shows my predicament; what I need vs what the Photoshop ...
3
votes
2answers
88 views

Create new photos from a photo based on variations of an adjustment

I have a picture here and I want to apply an adjust (brightness for example) and save like 40 pictures, each one with a different level of brightness. Is there a way to do this automatically? I use ...
3
votes
2answers
434 views

Fit objects into certain size in Illustrator

I have 20 logos with different sizes. I would like them all to fit (maintaining proportions) into certain size – let's say limit both width and height by 100px. So that they can be later redistributed ...
3
votes
1answer
256 views

Photoshop Actions Save for Web

I am making a Photoshop file with a lot of slices some for iOS, some for Android and other formats. I need to create an action that saves only certain slices to the users desktop in a folder depending ...
3
votes
1answer
933 views

Scripting Photoshop: path has too many points to be converted to selection?

I am working with some large tiff files with fairly complex clipping paths, and have written a script to convert the paths to a selection, invert that selection and delete pixels in order to ...
3
votes
1answer
3k views

Photoshop Scripting: batch replace colors

I'm trying to write a script that will replace the colors of all same-colored shapes, including those on non-visible layers. I am new to Photoshop scripting, but I imagine the pseudocode would work ...

1 2 3 4 5 6