Skip to main content
Known Participant
March 19, 2024
Answered

batch resize export

  • March 19, 2024
  • 1 reply
  • 1079 views

Hello!

I wonder if there is a way to batch export based on the contents of the file? 

For eg. I work with clipped products (transparent pngs). I need my final output to be a 3000px 3000px image based on the clipped image (no white space).

The items I am shooting are all different sizes and angles.

Currently, I am doing this manually but I wonder if there is a script/plugin that will automate this process for me? 

I have tried running an action but this won't work. It cuts off the image/uncentered. 

I hope I have explained that properly. 

This topic has been closed for replies.
Correct answer Stephen Marsh

Ok, so I have managed to get the selection to crop, I just can't get the canvas to be a square. It will size the canvas to the longest side. 


quote

Ok, so I have managed to get the selection to crop, I just can't get the canvas to be a square. It will size the canvas to the longest side. 


By @mbenton75


Step 4: Canvas size...

 

Stop recording the action after the Fit Image step. The canvas should now be 3000px on the longest edge.

 

To record a 3000px square canvas resize, you need to prime the document so that the longest edge isn't 3000px. So either resize, crop or create a dummy document smaller than 3000px on each edge.

 

Then press record and use canvas size to 3000px on each edge. Stop recording. Your recorded action step for canvas size should now have a width of 3000px and a height of 3000px, creating a square canvas for both portrait and landscape images.

 

Actions are not always recorded in a linear start-to-finish manner. Sometimes you need to record and stop, insert menu items, setup the document in another manner, record again etc.

 

Hope this helps.

 

 

 

1 reply

Stephen Marsh
Community Expert
Community Expert
March 19, 2024

Have you looked into Export As or Generator/Generate Image Assets?

 

It should be possible to record the trim command using transparency into an action with an image size and or canvas size or fit image steps.

 

Can you provide before/after samples?

mbenton75Author
Known Participant
March 19, 2024

I just uploaded a sample. The objects photographed are hardly ever the same size/shape etc. The final images are sized to fully fit into a 3000px space. 

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
March 25, 2024

Ok, so I have managed to get the selection to crop, I just can't get the canvas to be a square. It will size the canvas to the longest side. 


quote

Ok, so I have managed to get the selection to crop, I just can't get the canvas to be a square. It will size the canvas to the longest side. 


By @mbenton75


Step 4: Canvas size...

 

Stop recording the action after the Fit Image step. The canvas should now be 3000px on the longest edge.

 

To record a 3000px square canvas resize, you need to prime the document so that the longest edge isn't 3000px. So either resize, crop or create a dummy document smaller than 3000px on each edge.

 

Then press record and use canvas size to 3000px on each edge. Stop recording. Your recorded action step for canvas size should now have a width of 3000px and a height of 3000px, creating a square canvas for both portrait and landscape images.

 

Actions are not always recorded in a linear start-to-finish manner. Sometimes you need to record and stop, insert menu items, setup the document in another manner, record again etc.

 

Hope this helps.