Looking at your screen capture of a portion of your action I see you make a new empty layer and move it to a named layer "layer 0". This looks like a Photoshop generated layer name was this layer created by this action or does the action expect the layer to exist. You can not always count on Photoshop generating the same name every time an action runs. If your batching this action on layered image files like Tiff, PSD, PSB "Layer 0" may exist when you action runs Photoshop may generate name "Layer 1" instead of layer or you convert a background layer could you post the entire action and layers palette its hard to guess what is going on seeing part of and action and have no Intel of the current document????
When recording an action it is better to select layer in a relative manor rather then by name.
Thank you for your reply.
The original images are transparant single-layerd PNGs, with the original layer being called "Layer 0".
Layer 1 is the watermark that is pasted on top.
Layer 2 is a new layer that is added and dragged below Layer 0 to be filled in white.
The action that I posted before was the full thing, here it is again: http://i.imgur.com/JwvnBk5.jpg
And here is my Layers pallete: http://i.imgur.com/Cn10hvN.jpg
What do you mean by "select layer in a relative manor rather than by name"?
The image you posted do not seem to ones capture at the point of failure.
That a look at my crafting Actions Package hse some good guideline
Crafting Actions Package UPDATED Aug 14, 2012 Changed AspectRatioSelection Plug-in script added Path support.
- Action Actions Palette Tips.txt
- Action Creation Guidelines.txt
- Action Dealing with Image Size.txt
- Action Enhanced via Scripted Photoshop Functions.txt
- CraftedActions.atn Sample Action set includes an example Watermarking action
- Sample Actions.txt Photoshop CraftedActions set saved as a text file.
- 12 Scripts for actions
The "Could not complete the command because the selected area is empty. (-25570)" error fails at Fill.
I can't work out why the program error is occurring though.
I'll try some different things anyway.
Capture your Photoshop screen at that point of failure and post the screen capture. Make sure the Actions palette and layers palette are visible in the screen capture.
Also look at all the image files your trying to batch make sure all are a single layer file the does not have a background layer and the layer it does have has the name Layer 0. I believe that means the files can not be jpeg file if that is the complete story and action which I fine hard to believe for the action starts with paste. Something had to be done to have something in the clipboard????
From that screen capture it looks like your trying to fill an area outside the image 1000px x 1000px area starting as x 1364?????
JJ is correct but you don't need to make a white background at all. JPEG will automatically be white where the document was transparent.
Oh my god!! You're right... Sorry for all the hassle for something so silly! The 8,000 images vary in size, so I obviously recorded the action with a much larger image. Thank you very much for all your assistance, it's much appreciated.
@Conroy, I need to put the white background in because the watermark layer is Hard Light and I want the whole thing to be transparant. If part of it is over a transparant background, it looks grey, even when saved as jpeg.
Well, if you want to fill a layer with foreground or background colour then just use the "fill with foreground colour" or "fill with background colour" commands instead of clicking a location with Paint Bucket Tool. Option/Alt-Backspace and Command/Ctrl-Backspace are the shortcuts.
Also there are thing you left out for example how the watermark with transparency got into the clipboard in the first place. Where the batch image are coming from how the were created to begin width what the sizes are. Also the watermark does not look like the action is positioning it or sizing it. The action looks like it may only work on image around a particular size and aspect ratio. If you look at the sample watermarking action im my package you will see it will watermark just about any size document sizing and positioning the watermarks. Yes the action uses a couple of utility scripts I wrote but they only used to save and restored Photoshop setting and document resolution so the Action was free to change setting and scale the document without resampling it so pixels would not change. The only way I know how to handle size to to scale a document to a known size work at that size then restore the document to it original scale.
Oh great, that's very helpful. Thank you.