I'm trying add a watermark to approx. 8,000 images by batching the process. However, it only does about 400. The 2 errors that are logged are:
Could not complete your request because of a program error. (-1)
Could not complete the command because the selected area is empty. (-25570)
Here's a screenshot of the action that I'm using: http://i.imgur.com/GkwSdP5.jpg
EDIT: It seems to stop at the 'Fill' part of the action by the way..
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.
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????
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.