Automating a Crop Command

EF
Posted By
Enzo_Fiorello
Oct 24, 2005
Views
266
Replies
4
Status
Closed
PC/Windows XP
Photoshop CS

I’m looking to automate a crop command in PS.

I’m starting with a 230×230 white canvas with an image on it. I want to run a batch that will crop the white canvas as close to the edge of the image as possible.

Is this doable?

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

CN
Cybernetic Nomad
Oct 24, 2005
How about using image trim?
EF
Enzo_Fiorello
Oct 24, 2005
Is there a way to crop a certain amount of pixels from just the top or sides?
JD
Jason_Drabek
Oct 24, 2005
I’m not a pro at this but I think I would select all, then transform the selection to the desired size, cut Ctrl+N>Enter>Ctrl+V. <shrug>

Actually, you don’t even have to make a new one. You could just select crop from the image menu.
DR
Danny Raphael
Oct 25, 2005
If the number of pixels is the same for each image and all images are the same size, the Image > Canvas size command should work. You would need to specify negative values, e.g., -200 pixels. It appears you would need to apply the command twice… once to cutoff the horizontal slice, once for the vertical slice.

Does this help?

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections