JR Trim Macros (Trim functions for Affinity Photo) v1
This macro pack is designed to emulate the Trim functionality found in Photoshop and other image editing software, but it also takes the feature further and provides several different options including non-destructive white background removal.
The Trim function is offered with macro variants that use 1%, 2%, 5% and 10% tolerance when sampling the top left corner of the image.
Additionally, I have also provided Remove White Background functions, available in both a live and non-destructive implementation, and in a destructive variant that also trims excess space around the remaining image data. These will generally be more effective at removing white background detail, and will do so in a non-contiguous fashion.
Trim functions macros and PDF readme