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
1
vote
1answer
2k views

How to batch resize an image and create multiple sizes (with Photoshop)?

I want to batch resize an image in multiple sizes with Photoshop. The sizes are most of the time the same so I would like to have profiles for a set of fixed sizes. Ideally I just need to open my ...
24
votes
6answers
146k 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 ...
0
votes
2answers
157 views

Using Photoshop to slice a raster image of text questions into individual images

Does anybody know of a place I could look into information about a script that could slice a flat, rasterized image into individual images for each block of text? I have hundreds of pages. I am ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
2
votes
2answers
1k views

Trace equation of line in Photoshop

Is there a direct method of using the Photoshop pen tool (or any other tool) to trace the equation of a line in 2D space and create a path from it in a given domain and/or range, provided I define a ...
0
votes
1answer
1k views

Script to change a color in all layers of a PSD file to another color?

Is it possible to loop through all layers (there are too many layers) and replace one color with another. Need automated approach, script or simple action. Loop through all layers{ Change Fill ...
0
votes
2answers
371 views

How do I set eyedropper settings using Photoshop ExtendScript (Javascript)?

Is there a way to set Photoshop's eyedropper settings (sample size, sample, show sample ring) in a script? Or, failing that, use the script to find out what the current settings are? Thanks.
0
votes
1answer
71 views

How to Identify/Change Blue-Bluish Colors in this Map in Photoshop [duplicate]

I want to extract/mark/show all blue colors of the image because there are color blinds who see them as black/wrongly. I need to estimate all blue-bluish colors there and be able to change the color ...
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 ...
1
vote
1answer
77 views

How to select all shapes with specific color and replace this color with an other one?

I am totally new in Photoshop scripting, but I have some JavaScript experience. I want to make a script (or find an existing one and study it) that finds every shape with a specific fill color in my ...
0
votes
1answer
593 views

Batch script to resize height of all layers to same height but keeping their original aspect ratio

I have hundreds of product image layers and I am trying to resize them all to the same height (ignoring the width) and retaining their individual aspect ratio's. Is there a script available that does ...
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 ...
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 ...
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 ...
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 ...
3
votes
2answers
975 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. ...
2
votes
2answers
4k views

Photoshop to SVG path?

I'm working under the following constraints: I have Photoshop CS3 only I don't have a budget to buy anything I need to get a Photoshop shape converted into an SVG path. How can I export or save ...
2
votes
4answers
3k views

Keep one layer always on top of the rest?

Is there a script/plugin that could make one layer appear always on top? I am busy with a website design and I created some safe zones which I like to have on top at all times. However, now when I ...
1
vote
1answer
1k views

Script to move layer in photoshop

I'd like to have a script that moves one of two layer in a photoshop session by one pixel, save the output as a png and repeat. Here's my attempt (it complains that transform is not avaialable, but I'...
1
vote
1answer
736 views

How to Batch Export All Directory Contents to PNG-8, Overwriting Existing Files?

Based on some preliminary manual testing, I've found that exporting as png-8 as one might expect provides significant file size reduction. One of my test images went from 58.8 kb to 10.7 kb. With a ...
1
vote
2answers
147 views

I need to create 60 unique framed mirrors for product images, looking for a way to automate

Basically I am given an image and I need to create a framed mirror I also need to be able to adjust the width of the moulding individual of the mirror because the width of the moulding needs to stay ...
0
votes
0answers
1k views

Adobe Photoshop XY coordinates export

I have tried to use amrok's script (given here). I'm trying to export the XY coordinates of corner points of a selection - ideally to a text file... Would you be able to help?
0
votes
1answer
257 views

Trying to plot a sine wave using Javascript in a Photoshop Script

I have to create this sine wave inside a layer on an image I already have. The image is 600 dpi, 10x10cm and I have a new layer created at the top that is selected. The image is CMYK. I have to run ...
0
votes
1answer
107 views

How can I get an RGB color using Photoshop's color picker instead of systems's?

I am using this script bellow to get an RGB color from color picker. Any idea how can I do the same thing but using Photoshop's color piker instead of system's one? var hexToRGB = function(hex) { ...
0
votes
4answers
5k views

Extract image x/y coordinates and width and height info from PDF via IL or PS

We have a professionally designed floor plan in PDF form for an event we are running currently. It is similar to a CAD drawing. We have booths (rectangular squares) drawn on it. I have a colleague ...
0
votes
0answers
79 views

How to replace Smart Image with a different graphic WITHOUT using Photoshop?

This Q&A offers a method by using Photoshop to load .js. However, I found this website can achieve this goal without using Photoshop. My question is how this website achieves this goal?