Jump to content
Our response time is longer than usual currently. We're working to answer users as quickly as possible and thank you for your continued patience.

Affinity Photo batch resize macro doesn't respect proportions.


Recommended Posts

So, I think found a bug that I can't (yet) work around.

I created a macro to batch process a few hundred product images of varying heights and widths (but all portrait).

To record the macro, I first resized the document (with proportion locked) to 3200px high and centred, then resized the canvas (with proportion unlocked) to 3500px high by 2800px wide, again centred — with the aim of making all images 4/5 aspect ratio with a consistent 150px space above and below.

But the macro does not respect the proportion lock. I've tested half a dozen times, and with separate macros for each step. A macro created using a tall skinny image, will cause all batch processed images using that macro to distort to the pixel width of the original macro image, even though the proportion lock was unchecked when creating the macro.

The image after creating the macro looks as correct (unsurprising, as the pixel dimensions are correct for that initial image), but it seems that the macro only records this initial pixel width, applying it to all subsequent images regardless of the proportion setting. (resulting distorted image attached).

Oddly, a similar macro — 1. resize doc to 2400 wide, 2. resize canvas to 2800x3500 — when applied to landscape images worked fine.

Bug fix required I think.

22_BAG_ESCORT_PACKED.jpg

Link to comment
Share on other sites

FWIW, after a LOT of trial and error I managed to work around this by splitting the macro and exporting twice. The first export with a height (but no width) entered in the 'New Batch Job' window (no resizing in the macro itself), then running the second canvas size macro on the resulting images.

Link to comment
Share on other sites

  • 1 month later...

I'm with a similar issue months ago. I want to make a Batch Job to watermark a lot of images whatever the sizes or orientation  with the same size of watermark in relation to the image to have a consistency. All I can archive is a macro as follows:

1 - Resize document to 3000px (for example) at 72ppp with the proportion lock on

2- Place the watermark (I already  have a png 3000x3000px waiting for this purpose)

3 and 4 - Allign center and middle the new layer 

4 - Holding Command, transform manually to the size I need

5 - Set opacity to 50%

As a Batch job it works but only on horizontal images, if they're vertical Affinity make a distortion. I think the issue is because Affinity ignore the proportion lock and only uses the the absoute numbers introduced at the first slot. 

 

Link to comment
Share on other sites

On 8/16/2022 at 3:14 PM, cleay said:

To record the macro, I first resized the document (with proportion locked) to 3200px high and centred

It's not a bug, as far as I know, just the way that macros work. They record the final dimension, not just the action and the inputs.

To resize without this issue you need to use Filters > Distort > Equations. There are several macros that use that approach available in the Resources section of the forums. 

This search should provide some good hints and the macros themselves: https://forum.affinity.serif.com/index.php?/search/&q=Macro resize equations&search_and_or=and

-- Walt

Desktop:  Windows 11 Home, version 21H2 (22000.613) 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 
Laptop:  Windows 10 Home, version 21H2 (19044.1706) 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
        Affinity Photo 1.10.5 (.1342) and 2.0.0 / Affinity Designer 1.10.5 (.1342)  and 2.0.0 / Affinity Publisher 1.10.5 (.1342)  and 2.0.0
iPad Pro M1, 12.9", iPadOS 16.1, Apple Pencil 2, Magic Keyboard

      Affinity Photo 1.10.5 (.280) and 2.0.2 / Affinity Designer 1.10.5 (.21) and 2.0.2 / Affinity Publisher 2.0.2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.