Skip to main content
Known Participant
March 18, 2024
Question

How to save files using Actions Panel as .png using Automate > Batch or script > Image Processor?

  • March 18, 2024
  • 1 reply
  • 1292 views

Hi All!

 

Relative newbie here - 

 

I have a collection of art prints in various aspect ratios which I'd like to add a white border around.. I have tried two different methods but I haven't been able to successfully export files as .png

 

I have created a new set in the Actions Panel and my action consists of increasing the canvas size by 15% and I have a backgound extension color creating the frame around the image.

 

First, I tried selecting Automate > Batch to apply these changes to my folder consisting of all the prints, but for some reason, the extended canvas space shows up transparent and not as the color selected (I am trying to save as .png and this might be why). Is there a way for me to save as .png and have the extended background color appear?

 

When I try another method (selecting Scripts > Image Processor) I am able to have the extended background color of the canvas appear but I can only save as jpeg (not .png). Is there a workaround within the Image Processor to have the files save as .png or will I have to save as .psd and create another Action to export as .png?

 

Ideally I'd like to maintain the .png format and figure out how to batch out multiple images of various aspect ratios with the border.

 

I've got the most up to date version of Photoshop just FYI..

 

I hope I explained this clearly.

 

Thank you all!!!

 

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
March 19, 2024
quote

Is there a way for me to save as .png and have the extended background color appear?

 

If a single floating layer, try flattening the PNG before extending the background.

 

 

quote

When I try another method (selecting Scripts > Image Processor) I am able to have the extended background color of the canvas appear but I can only save as jpeg (not .png). Is there a workaround within the Image Processor to have the files save as .png or will I have to save as .psd and create another Action to export as .png?

 

 

By @Pixel Lake

 

The official Image Processor script didn't include PNG.

 

A custom extension of the script by the late Mike Hale is available here:

 

Known Participant
March 19, 2024

Thank you so much, Stephen!

 

Flattening the layer certianly allowed the background to appear, but I encountered something odd.. 

 

In the attached image, you'll see I received an error message for every file which I selected continue and appeared to yield my desired result.. Just wondering if you might know why I received this and what I might be able to do to avoid clicking "Continue" for every image?

 

Thanks again!

Stephen Marsh
Community Expert
Community Expert
March 19, 2024

The screenshot indicates that the action is expecting to select the Background layer as the first step, however, the current file state does not contain such a layer. Take a look at the layer name in the layers panel. Does this name vary among the various files? Untick to disable or remove this first step if the next step of flattening is sufficient without explicitly selecting a layer.