Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Cropping to subject

New Here ,
Jul 28, 2022 Jul 28, 2022

Hello, I am trying to create an action that will select subject (tif file with subject very clear) and then crop it to that selection. Currently when i make the action it crops to the same size as whatever i made the action on. This cuts off parts of images that are bigger or leaves too much space on smaller ones. Is there any way to make it crop to whatever is selected instead of what was originally selected when i made the action?

TOPICS
Actions and scripting , Windows
2.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jul 28, 2022 Jul 28, 2022

Please post a screenshot of your action set and action, all steps expanded and the panel wide enough to view all content.

 

It should be as simple as:

 

  • Select > Subject
  • Select > Modify > Expand: ?px (optional)
  • Image > Crop

 

That being said, you may wish to take a look at the following:

 

https://www.marspremedia.com/software/photoshop/auto-crop

https://community.adobe.com/t5/photoshop-ecosystem-discussions/script-help-crop-based-on-select-subj...

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 28, 2022 Jul 28, 2022

Which tool/method is used to record crop step? It seems you have recorded exact dimensions at exact position. Can you expand action and post screenshot with expanded crop step (or step that performs selection and cropping)?

expanded crop step.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 31, 2022 Jul 31, 2022
LATEST

Do you really need an action or script? Select subject, press the C key, then Enter twice. If the goal is to have a margin, look at one of the script links below. Or if those aren't quite what you had in mind, explain more details and I might create another script. Or are you looking for code to select subject and crop for your own script?

http://www.marspremedia.com/software/photoshop/auto-crop

http://www.marspremedia.com/software/photoshop/batch-web-images

 

William Campbell
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines