Jump to content
TomBe

Problems resizing to specific width or height ONLY using Macro + Batch

Recommended Posts

I'm very new to Affinity Photo so am getting to know where it really shines and where it falls short. By no means was I adept at Photoshop, but I found it essential for recording Actions. Unfortunately I've run into some issues using Affinity Photo's Macros in Batch jobs. The main one being that if I have a folder full of images that are in different aspect ratios (3:2, 4:3) it seems I am unable to record a Macro that resizes to a specific width or height ONLY.

When I record a Macro and resize a 4:3 file to say 800px wide, with the size locked the height of course becomes 600px. If I run that Macro as a Batch on the folder of mixed aspect ratio images, the images that are in 3:2 ratio are resized to 800px x 600px, so they're badly distorted. So the Macro records the dimensions of BOTH edges when the resizing takes place, rather than only the edge you actually edit (as is the case in Photoshop).

Is there an obvious solution to this that I am missing?

Share this post


Link to post
Share on other sites

Did you try  File > New Batch Job 

Batch resize.jpg


Affinity Photo 1.6.5.123  &  1.7.0.293 bèta

Windows 10 Home v 1809 (build 17763.437) - 64 bit processor - AMD A4-5000 APU with Radeon HD Graphics  1.50GHz - RAM 8,00 GB
Calibrated Monitor (Datacolor Spyder5 Pro)

 

Share this post


Link to post
Share on other sites
2 minutes ago, HVDB Photography said:

Did you try  File > New Batch Job 

Batch resize.jpg

I did not, but I suspect that'll do the job – thanks! I just presumed that the Macro would need to be where the resizing takes place, but this does look like the solution. I'll report back...

Share this post


Link to post
Share on other sites

The solution posted above by HVDB Photography does indeed work, but what this option doesn't allow for is changing the dpi at the same time as doing the resizing (ie changing a full resolution 300dpi file to a 800px wide 72dpi file). A Macro doesn't allow for this either as the same issue arrises as per my original post in that the new dimensions that are the result of changing the dpi become a step in the Macro, which prevents the Macro from being useable for a Batch that involves images of differing aspect ratios.

To achieve what I wanted to this evening I had to use a combination of a Photoshop Action to resize to 72dpi, and then the Batch job in Affinity Photo to resize a folder of mixed aspect ratio images to 80px wide. Not ideal, but it'll do for now.

If there's a solution for these issues in Affinity Photo I would love to hear them. If not, I'd like to think these issues could be addressed in an update. Do Serif monitor these threads for suggestions and ideas as to how they can improve their product, or do we have to go somewhere to specifically put forth our suggestions?

Share this post


Link to post
Share on other sites

Create a macro that just changes the DPI to 72dpi (with resample set to off/unticked)

In the New batch Job screen set your width to 800px. IMPORTANT: Click the "more" button and untick Embed Metadata

Add your macro to the New Batch Job screen and run the batch job


Due to the ongoing Brexit negotiations, punctuation, spelling and grammar will be used sparingly until further notice.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×