Photoshop Script Crop To Margins

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025
  • JavaScript for Photoshop crops images to result in margins a percentage of the subject size. Video tutorial is Windows. Script works the same both macOS and Windows.
    Crop current image or folder of images
    Option to use content-aware fill
    Append suffix to output file names
    Output to JPG, PNG, PSD, or TIF
    Save and restore all settings
    Also see related video:
    Crop To Template: • Photoshop Script Crop ...
    Get the script: www.marspremed...
    Also see related script "Crop Center Head"
    www.marspremed...
    How to install Illustrator scripts macOS: • Illustrator Scripts Ho...
    How to install Illustrator scripts Windows: • Illustrator Scripts Ho...
    How to install InDesign scripts macOS: • InDesign Scripts How t...
    How to install InDesign scripts Windows: youtu.be/
    How to install Photoshop scripts macOS: • Photoshop Scripts How ...
    How to install Photoshop scripts Windows: • Photoshop Scripts How ...
    More about installing scripts both macOS and Windows: www.marspremed...
    Other useful scripts for Adobe Creative Cloud applications: www.marspremed...
    Demonstration images thanks to unsplash.com

ความคิดเห็น • 19

  • @leemooney9286
    @leemooney9286 2 ปีที่แล้ว +4

    I waited a long time. ^^

    • @wc7
      @wc7  2 ปีที่แล้ว

      Thanks

  • @bharamappabandak9226
    @bharamappabandak9226 2 ปีที่แล้ว +4

    Your amazing sir 👌👌👌👌🙏🙏🙏🙏

  • @gizmo4835
    @gizmo4835 4 หลายเดือนก่อน

    Hi. Whenever I'm automating the task, it keeps asking me to agree to the settings. I want to run the same settings each time without it asking. How would I go about doing this?

  • @YvesGabioud
    @YvesGabioud 2 ปีที่แล้ว +2

    Excellent, you need more subscribers !

    • @wc7
      @wc7  2 ปีที่แล้ว

      Thanks.

  • @edwardbach344
    @edwardbach344 10 หลายเดือนก่อน

    I've been trying to figure out this exact thing. I ran your trial and ran into a few snags, I'd say about 75% of 390 pictures came out perfectly. I'm wondering if I could should you a few examples of where it went wrong, it may be something I have to do while taking the pictures, or maybe there's a setting I could add to the script or a sensitivity of the subject select function. Anyway, thank you for this.
    It's almost like I wonder if it can do a reverse subject select, like find the background instead (which in my images is always the same color) and then crop based on where the background isn't instead of where the subject is? Does that make sense.

    • @wc7
      @wc7  10 หลายเดือนก่อน +1

      The script relies on Photoshop feature Select Subject. The script can't do it any better than Photoshop can. There isn't anything I could do different. Only other thing that might help, but not much from what I've seen: th-cam.com/video/oPdPDZWbUX4/w-d-xo.html

    • @edwardbach344
      @edwardbach344 10 หลายเดือนก่อน

      Thanks for the response. Yes, I saw that the select subject was key based on one of your previous notes here (and as you pointed out that is definitely the culprit). That's why I was wondering if an alternative might be to select the background (with a range of 20-30) that will be used in all the photos and then inverse that selection and use that as the subject and crop around that? @@wc7

    • @wc7
      @wc7  10 หลายเดือนก่อน +1

      @@edwardbach344 If Photoshop had such a feature exposed to script, I could call on it. As far as I know, there isn't such a feature.

    • @edwardbach344
      @edwardbach344 10 หลายเดือนก่อน +1

      Thanks a lot - it's still a very helpful tool! And I enjoy your videos too.@@wc7

  • @aussie2uGA
    @aussie2uGA 2 ปีที่แล้ว

    I got really excited for this one, cropping people and making headshots, but realized your definition of "subject detection" is the outer edges of the photo. Any chance this could be made to "select subject" where it finds the person and then you can adjust how much border around them you'd like?

    • @wc7
      @wc7  2 ปีที่แล้ว

      The script does use Select Subject. Then adds a margin a percentage of subject size detected. If you are not getting this result, there must be a reason. Is a log written that indicates problems perhaps?

    • @aussie2uGA
      @aussie2uGA 2 ปีที่แล้ว

      @@wc7 Oh thank you! When I tried on a person against a photo backdrop, it cropped to the edge of the backdrop, and seemed to refuse to come in tighter. I will definitely play with it more!

    • @wc7
      @wc7  2 ปีที่แล้ว

      @@aussie2uGA If a particular image doesn't seem to work, open it in Photoshop and try Select Subject manually. See if that provides a clue as to what the problem might be. The script is only as good at finding the subject as Photoshop is good at finding the subject. If Photoshop has trouble, the script has the exact same result.

  • @harishbabu674
    @harishbabu674 2 ปีที่แล้ว +2

    Wow thitis u want

    • @wc7
      @wc7  2 ปีที่แล้ว

      Thanks