MacOS – Automator crop image is doubling the inputted dimensions

automatormacosphotosservices

I'm using the recommendation from this answer to create an Automator service that crops all photos I send to it. It works perfectly except that the crop automatically doubles the dimensions.

I've tried:

  • deleting every step except for the crop and it still doubled the dimensions

  • simply halving the entered dimensions but I need several crops to have an odd number for its size.

I need to crop photos to specific sizes for use on my company's website and can't just crop by percentage.

How can I modify this service to achieve this?

I'm doing this on a late 2013 MacBook Pro running macOS High Sierra.

EDIT!!!

Here's the workflow: Screenshot of workflow

EDIT!!! I'm bad at this – adding more screenshots

Here are better screenshots
enter image description here
enter image description here

Best Answer

I see you are cropping twice. Maybe you must clear the clipboard between getting the variable because automator adds more info to the memory instead of replacing. Try placing an Applescript Action between the crops and paste this code to clear the memory:


tell application "System Events"
    try
        set the clipboard to {}
    on error err_message
        display dialog err_message
    end try
end tell