Thanks for the explanation. I redownloaded the macro, but all that happens is that my image runs through imageoptim but the size remains the same (ie more than 580px). I’ll record a screencast if that helps?

all that happens is that my image runs through imageoptim but the size remains the same (ie more than 580px).

Just to be sure: The size remains exactly the same, or it is not the same but still more than 580px (height)?

Are you still getting the “cannot get source” error?

I noticed that in your penultimate post you said you want to convert to “580px wide”. Was that a typo? (Until then we’ve been speaking of the height, and the macro is set to fit the image to a height of 580px.)

Could you please try to run the macro on the attached image and report back?

I show the image dimensions at the start, then run the macro by pressing Command + 2 (this isn’t shown in the screencast). Nothing happens, Then I open KWM to show that the macro is running, then run the macro again. This time the ImageOptim part of the macro runs correctly. I open up the image info to show the size, but it’s not shown, so finally I open it in Photoshop to show that the image size hasn’t been converted to 580px WIDE.

Just to be sure: The size remains exactly the same, or it is not the same but still more than 580px (height)?
Are you still getting the “cannot get source” error?
I noticed that in your penultimate post you said you want to convert to “580px wide”. Was that a typo? (Until then we’ve been speaking of the height, and the macro is set to fit the image to a height of 580px.)
Could you please try to run the macro on the attached image and report back?

Just to be sure: The size remains exactly the same, or it is not the same but still more than 580px (height)?

I mean, the size of the image remains unaltered after running the macro.

Are you still getting the “cannot get source” error?

nope

I noticed that in your penultimate post you said you want to convert to “580px wide”. Was that a typo? (Until then we’ve been speaking of the height, and the macro is set to fit the image to a height of 580px.)

sorry yes, typo.

Could you please try to run the macro on the attached image and report back?

According to your video the original dimensions are 6016×4016 (a bit hard to read) and at the end (in Photoshop) they are 1738×1160.

So, unless I’m missing something, the dimensions are not unaltered. Since 1160 = 2×580 it points to the ppi problem, as discussed in earlier posts.

However, this problem should be solved by the If…Then action in the macro. I have no clue why it isn’t.

Well, we can do two things:

Can you post a link to the unaltered original image?

Below you find a debugging version of the macro. It will output size and ppi information from three different stages of the macro, like this:

Can you run the debugging macro on two or three images, where at least one of them has a resolution higher than 72ppi?

For each image: Write down the Original values (size & ppi) according to Photoshop. Run the debug macro and copy the results from the debug messages. Write down the Final values (size & ppi) according to Photoshop.