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

need help writing an action script to crop images, mine isn't working

Community Beginner ,
Jul 29, 2019 Jul 29, 2019

Please help! I can’t figure out how to set up a photo action to recrop a ton of images while maintaining the 2000 x 2000 300 dpi ratio.? I need to write 3 versions. Here are samples of what I start with: a 2000x2000 300 dpi image of a full figure and how I need it to end up. I hand cropped all of these...

1. Crop for Chef Coats, starting with the 2000x2000 file  — I need to “zoom in" on just the coat, recropping and keeping the 2000x2000 with 300 dpi intact.

2. Crop for Chef pants, same as above.

3. Crop for Chef hats/scarves same as above, but a much tighter crop

Thank you!!! I am totally in the weeds on this so your help is really appreciated! I've got about 900 of these that need to be done for tomorrow…:(

sue

4001-01_black_1_1.jpg4001-01_1_1_close.jpg0175-1901_Red Poplin.jpg0175-1901_Red Poplin_crop.jpg

400-25_white_1_1_close.jpg0400-25_white_1_1.jpg

1.2K
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 29, 2019 Jul 29, 2019

If you start with 2000px x 2000px image and crop a detail and want that to be 2000px x 2000px you need to upsample it, resulting in decreased image quality.

Is that really your intention?

How can the details that are to be isolated be determined in the original file (channel, filename, …)?

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 ,
Jul 29, 2019 Jul 29, 2019

the hand cropped image resolution looks fine to me so hoping the automated ones will work also.... Not really sure how to answer that question.... I will put all "like images" in a folder so I can process all at once. They are all saved by product item number so easy to divide once I can get an action script that works...I'll run it on a whole folder of images that need the same sort of cropping.

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
LEGEND ,
Jul 29, 2019 Jul 29, 2019

It might look fine on screen but it may print terribly. Are these for print use?

The point of the second question is, how will the software know where to find the head/waist etc. in different photographs? The cropping will be similar, and it will be a repetitive task, but is the requirement really identical for every model/garment/photographer?

This seems to be exactly the point of paying a skilled human to examine each shot...

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 ,
Jul 29, 2019 Jul 29, 2019

I am a skilled human and I am trying to do this as quickly as possible because that is smart. I shot all of these on a standard size maniquinn so the cropping would be fast and easy and images would be consistent across the board. In every single shot is positioned exactly the same. The camera was fixed to the floor, the maniquinn mounted on a stand also fixed to the floor. Only the clothing changes from item to item. All are only for ecommerce use.

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 29, 2019 Jul 29, 2019

If the positions are identical then you can just record one Action for each case (coats, pants, hats) and run them on the respective images (or rather duplicates of the images).

Sorting which image belongs to which group would need to be done manually if I understand your description so far.

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 ,
Jul 29, 2019 Jul 29, 2019

I am going to try this again. I'll repost if I finally get it to work. apologies for the multiple posts. I will only respond here. The other one can get closed out.

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 29, 2019 Jul 29, 2019

You know how to use the Crop Tool’s »W X H x Resolution«-setting?

Otherwise you could just record a square crop and include a resampling step (Image > Image Size) in the Action.

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 ,
Jul 29, 2019 Jul 29, 2019

did not know the crop tool had added a resolution setting. Will look into that. I'll also try adding the resampling step into the action. Thank you.

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 29, 2019 Jul 29, 2019

I agree with other replies concerns about upsampling, adn if all the files are in register of each other.

If the files are not in register of each other, I recommend you  do that manually (jsut paste your approved layer and set to multiple mode then manually scale and reposition, and dlete the layer you pasted)., record an action, then run the action as batch.

Though manually registered your images sounds like a lot of work, your end product will be in register and does not take as long.

Yes you set res here. Sorry should be PX not inches for 2000.

Screen Shot 2019-07-29 at 9.24.06 AM.png

Provide a link to post you wish to delete, do not want to chance deleting wrong one as JMack had some good replies to a similar post but noit exact.

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 ,
Jul 29, 2019 Jul 29, 2019

I don't find this place on my tool bar, do I need to open something different?Screen Shot 2019-07-29 at 1.54.19 PM.png

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 29, 2019 Jul 29, 2019
LATEST

Slow down, relax. Is very basic and easy.

Click here

Screen+Shot+2019-07-29+at+1.54.19+PM.png

Change to w x h x Res

Screen Shot 2019-07-29 at 3.46.23 PM.png

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 29, 2019 Jul 29, 2019

The simplest approach might be to

• duplicate the bunch images in Bridge

• use Bridge’s Rename-function’s »String Substitution« (or whatever it’s called«) to replace » copy« with »_detail« (or whatever your naming convention is)

• run a Batch on them based on one Action (with manual input for either Crop Tool or Rectangular Marquee Tool) or three Actions (if the position is identical)

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 29, 2019 Jul 29, 2019

Don't start multiple threads! Which thread are we supposed to reply to?

Could a moderator please merge this and sj1122s other thread on exactly the same subject?

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
LEGEND ,
Jul 29, 2019 Jul 29, 2019

Ok, one photographer, manequin, fixed camera: I take it back, you CAN automate this.

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 ,
Jul 29, 2019 Jul 29, 2019

wonderful. Any advice on how best to write my script? So far I don't have something that is working really well. I am VERY NEW to scripts however. thank you.

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 ,
Jul 29, 2019 Jul 29, 2019

I really can't make this work. looks like I'm going to have to hand crop all 900 of these by tomorrow - ugh! Anybody have step by step instructions I'd love to have them. thanks.

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 ,
Jul 29, 2019 Jul 29, 2019

GOT IT, no idea why it worked this time, but it did. thanks for all the suggestions. Totally saved my bacon!

sue

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