Skip to main content
Ian-SAfc
Inspiring
September 2, 2024
Question

Actions: how to copy a layer across to a series of .png images ? ("copy into" not available)

  • September 2, 2024
  • 2 replies
  • 619 views

I have 48 .png images that I want to batch process.

I have another .psd file open in Photoshop with a layer I'd like to copy across into all these .png images.

 

These layers for some reason are not availabe to Ctrl-C , then Ctrl-Shift-V (copy into) the .png images.

Also, "Duplicate layers..." does not work since the name of the .png file always changes.

Ctrl-A, and then copying allows me to paste the layer in my .png image but its out of position.

 

How can I make sucessfully make an action to do this?

This topic has been closed for replies.

2 replies

Legend
September 3, 2024

Make sure your documents are all at the same magnification level (50%, 100%, etc.) There is a bug when dragging layers to a new document where they will only align if view magnification is identical. Not sure if this affects copy/paste as I almost always use drag and drop.

Stephen Marsh
Community Expert
Community Expert
September 2, 2024

Are the PNG images all 24 bit RGB or perhaps indexed colour 8 bit? What about the PSD? What are the pixel dimensions of the PSD and PNG files?

 

Can you post samples or screenshots to illustrate?

 

A script might be able to overcome any limitations with actions.

Ian-SAfc
Ian-SAfcAuthor
Inspiring
September 2, 2024

both images are RGB 8 bit, and these are the layers I am trying to copy-paste over.

Whats a good language to script in (I'm not too familiar with javascript, but maybe chatgpt can help me)

 

 

 

 

Stephen Marsh
Community Expert
Community Expert
September 2, 2024

Copy and paste into should work, one layer at a time. If you only have 2 docs open the action should be OK.

 

Layer > Duplicate will work in an action for multiple selected layers if you set the modal playback for that step so that it's interactive to allow you to select the target document by name. A script would provide full automatkon of the layer duplication. I'm not sure if layer duplication will correctly position though.