Skip to main content
Participant
August 7, 2024
Question

Batch crop for e commerce

  • August 7, 2024
  • 3 replies
  • 152 views

Hello, Is there any action that I can crop ecommerce photos at the same point?

Actually I need to have at all the pictures the same distance at the top and the bottom. 

The background is white in all of them. 

Because there are more than 100 in any case I need an automate way.

This topic has been closed for replies.

3 replies

Stephen Marsh
Community Expert
Community Expert
August 8, 2024

Either an action or script can likely automate this task.

 

You mentioned the top and bottom distance, but not the sides.

 

A lot depends on the images, so it's hard to comment without seeing what you're dealing with.

Legend
August 7, 2024

This should get you started.

var myDoc = app.activeDocument;
preferences.rulerUnits = Units.PIXELS;
myDoc.trim();
var h = myDoc.height;
var w = myDoc.width;
h = h + 200;
w = w + 200;
myDoc.resizeCanvas(w, h);

 

kglad
Community Expert
Community Expert
August 7, 2024

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from cc desktop">