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

how to batch find+re-centre subject on large volume of images

Community Beginner ,
Oct 05, 2023 Oct 05, 2023

Hi, 

I am batch processing a very large number of sequential images. I will need to select and center on the subjet within the sequence and the subject sometimes shifts around the frame. I then want to crop left and right to the same size via canvas with the subject in the centre. I can automate selection of subject via object finder but then don't know how to re-centre/crop the frame on/to subject so that I can batch-save cropped sequence. Does anyone have any suggestions?  

TOPICS
Actions and scripting
1.0K
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 ,
Oct 05, 2023 Oct 05, 2023

After selection (select subject or whatever), use Image > Crop. You can then you can use Image > Canvas Size to extend the canvas size larger for consistency. 

 

Or just the use Canvas Size command without the crop command (either once from centre, or twice with different fixed left and right anchor points and values).

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 Beginner ,
Oct 05, 2023 Oct 05, 2023

Thanks Stephen, the issue is that the size of the selected subject changes unfortunatly, depending on other stuff in shot, so when I use crop the file size is always slightly different which is not desirable. Other possibility is to paste into new document which would have a standard size but then I am not sure how to sequentially output from a new document on 400+ images?   

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 ,
Oct 05, 2023 Oct 05, 2023

Please post a couple of sample images. 

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 Beginner ,
Oct 05, 2023 Oct 05, 2023

Untitled-3.jpg

Untitled-4.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
Community Beginner ,
Oct 05, 2023 Oct 05, 2023

I am now looking at using this script mentioned in this threat to save after pasting into new document... unless anyone else has a better idea? 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/saving-sequential-file-names-of-the-same-file-to-multiple-files/m-p/12025355

 

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 Beginner ,
Oct 05, 2023 Oct 05, 2023

Actually, I don't have enough experience with scripting and on closer inspection the scripts in my link don't seem to be exactly what I need. Can anyone point me to a basic sequential save as script from new document? 

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 ,
Oct 05, 2023 Oct 05, 2023

Again:

Please post a couple of sample images.

Both »as is« and the intended result. 

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 Beginner ,
Oct 05, 2023 Oct 05, 2023

I am trying to post some samples but they are stuck in virus scan for some reason...

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 ,
Oct 05, 2023 Oct 05, 2023

Are you shooting these images without a tripod (or some other manner of fixating the camera relative to the subject)? 

 

You didn’t seem to mention rotation in your original post at all. 

What about that? 

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 ,
Oct 05, 2023 Oct 05, 2023

File > Automate > Crop and Straighten Photos seems to be able to handle the rotation fairly well, though. 

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 Beginner ,
Oct 05, 2023 Oct 05, 2023

I am not responsible for the image capture, just for fixing it. The rotation is not the problem, that's why I didn't mention it. Thanks for suggesting > Crop and Straighten, unfortunaetly it doesn't work for everything and the images end up at different sizes which is not what the client wants .. I guess some form of manual intervention is unavoidable unless you can think anything else.

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 ,
Oct 05, 2023 Oct 05, 2023
LATEST

Well, there is little point in badmouthing some third party but the image capture seems to lack basic forethought … 

 

Using Image > Canvas Size to unify the image dimensions should be able to be recorded in an Action. 

If that does not meet the point please explain what you mean. 

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