Jump to content

Recommended Posts

Posted (edited)

Using affinity photo 2 on Windows desktop.

First time using the macros feature, I created a simple macro, but when I export the macro, it comes to 900mb?

Do macros usually get his big?

image.png.0646b057c1fe0faec035f315345ceb5b.png

The macro is to get around an issue with 360 images in general where after editing the image it creates a noticeable stitch line in 360 viewers (universal issue not a affinity photo issue).

The macro was created on a 72mp equirectangular image.

  • It first resizes the canvas equally horizontally from 11904 px → 22904 px
  • Copies the image, transforms it and snaps it to the left edge of the original image
  • Copies the image again and transforms and snaps to right edge of image.
  • Then resizes the canvas back from 22904 px → 11904 px

But 900mb for a macro seems large, I would have thought it's just storing instructions to replay?

Edited by DaviG
Spelling
Posted

Welcome to the forums @DaviG

I don’t know much about macros but I would expect that the “Paste” function might have something to do with the problem.

What does it paste and where does it get the thing that it pastes?

If the thing it pastes is not copied from the document then it’s possibly held in the macro, which could be where the large size comes from.

Posted
13 minutes ago, GarryP said:

If the thing it pastes is not copied from the document then it’s possibly held in the macro, which could be where the large size comes from.

Well the image is RAW HDR merge, so could be this, but why would the paste action of the images be saved in the macro if it is just instructions?
If that is the intended behaviour, then it's a bizarre choice by Affinity. 

Posted

As I said earlier, I don’t know much about macros but, if there’s no Copy step (or equivalent) then I would expect the Paste steps to contain <something> to paste. And that <something> will have to come from the macro, which may be where the space is being taken up in the macro file.

If I’m reading the macro correctly, it starts by resizing the canvas and then pastes <something>. Where does the <something> come from?

Posted
1 minute ago, GarryP said:

If I’m reading the macro correctly, it starts by resizing the canvas and then pastes <something>. Where does the <something> come from?

The original image

 

Posted

I can’t see a step in the macro that copies the original image, so maybe it's not doing what I think its doing, so it’s probably best if I leave this to the macro experts to help you with.

Posted (edited)

@GarryP

Its most definitely copying the original image

But anyway, I changed the way I created the macro and file size has now dropped to 2kb

image.png.c35cbb2a9a2515d8eaebff5e35be717d.png

Edited by DaviG
spelling
Posted

Macros remember things you Copy, and will Paste those same things again later when you run the macro. That can make them very large.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted

Welcome to the Affinity Forums @DaviG!

As Walt mentions above, Macros will record the specific objects/layers that you copy & paste, and these are then saved within the macro to be recalled for other documents - hence the size of the macro you have recorded.

If I'm not mistaken, you can use Duplicate (CTRL/CMD + J) in a macro recording to duplicate the specified layer - this will be a dynamic 'duplicate' and when replayed for future documents, it will always create a copy of the currently selected layer, rather than 'pasting' in the saved image, such as in the macro you've recorded.

I hope this helps :)

Posted

But TBH, isnt this a strange interpretation of „macro“? IMHO it is a set of commands (and declarations) which will be executed when called, but it does not contain any content.

Regards,
Otto

Affinity Suite v2.6.x - Windows 11 Pro

Posted

I understand your point of view, but imagine that you want to 'paste' a watermark in the same section of a batch of 100 edited images - the macro recording function recalling the specific object 'copied' allows for this, therefore the Macro feature was implemented with this as expected behaviour.

believe this is also how PS Actions work when copy/pasting - though I don't have enough personal experience with them to be certain.

Posted

It should be selectable by the user if paste uses data collected during macro recording or the „current“ data from paste buffer created when the macro is run. The design decision made by Affinity to always use the recorded data from macro recording is very short sighted. Even if PS behaves the same, this should not hold back Affinity to provide better choices in their own products.

still hoping that the scripting function shown some time ago will eventually arrive and give the users full control.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
1 hour ago, Dan C said:

If I'm not mistaken, you can use Duplicate (CTRL/CMD + J) in a macro recording to duplicate the specified layer - this will be a dynamic 'duplicate' and when replayed for future documents, it will always create a copy of the currently selected layer, rather than 'pasting' in the saved image, such as in the macro you've recorded.

 

Thanks, that's what I tried next, macro is now 2 kb 👍

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...
×
×
  • Create New...

Important Information

Terms of Use | 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.