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

Crop/trim image automation 3:4

Community Beginner ,
Jun 16, 2021 Jun 16, 2021

Copy link to clipboard

Copied

Cropping a lot of images one by one. Need your help to speed up the process.

Final image should be :

Aspect ratio 3:4.

Keep the background color.(might change...but mostly in the 240-255 values)

Center the subject.

Crop above the nose.

Any help is appreciated !

TOPICS
Actions and scripting

Views

15.2K

Translate

Translate

Report

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

correct answers 1 Correct answer

Guide , Jun 16, 2021 Jun 16, 2021
I didn't care about compatibility and I'm assuming you are using the latest versions of photoshopIf necessaryyou can refuse to use the Select Subject function and take the coordinates of the nose as the center of the selection

 

#target photoshop

var lr = new AM('layer'),
    doc = new AM('document');

lr.copyCurentToLayer()
lr.liquify()
lr.fade('difference')
lr.levels([0, 0.2, 8])
lr.makeSelectionFromChannel('blue')

if (doc.hasProperty('selection')) {
    var selectionBounds = doc.descToO
...

Votes

Translate

Translate
Adobe
New Here ,
Jun 30, 2022 Jun 30, 2022

Copy link to clipboard

Copied

Can someone help me, I have never made a script before and from the same photoshoot I need to crop to different vendors at pixel ratios all 300dpi. Some vendors have the crop right under the eyes like the image posted here, others have crops right below the nose, above the lips and then also right below the lip.

 

i know for certian crops, the backgounds would need to be expanded, so i applied the RGB values.

 

Macy's Full body - 3894px x 4755px crop under eyes Background RGB 245

Macy's Half Body - 3894px x 4755px Crop mid thigh Background RGB 245

Nordstrom  -  2640px x 4048px crop right under nose Background RGB 255

Walmart - 1500px x 2000px crop right below the lip Background RGB 255

Saks Full body - 3000px x 3000px crop under eyes Background RGB 255

Saks Half Body - 3000px x 3000px Crop mid thigh Background RGB255

 

Thank you in advance! 

Votes

Translate

Translate

Report

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