dts1983 Posted March 18, 2020 Posted March 18, 2020 I'm trying to use Affinity Photo to resize various images (book covers) proportionally to fit centrally onto a white canvas 720px square. I'd also like them to save as the name of the file ready for upload to our website. I'm a newbie to Affinity and batch processing generally. Thanks. Quote
Staff stokerg Posted March 23, 2020 Staff Posted March 23, 2020 Hi dts1983 and Welcome to the Forums, Not sure if you have found these resize Macros from @John Rostron Would would do the resizing for you if need to keep to fixed size. The renaming of the files, we can't currently do dts1983 1 Quote
John Rostron Posted March 23, 2020 Posted March 23, 2020 My macros scale the image proportionally, but to not fit to a canvas. The Macro below applies a similar macro to the others, but scales the document to 720px max. It then Resizes the canvas to 720px square, with the image centred on a transparent background. Let me know if you wanted a white background. Fit to 720px square.afmacro It should work as part of a batch process. John Quote Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
dts1983 Posted April 19, 2020 Author Posted April 19, 2020 Hi John, Thanks for you're reply and macro. Sorry it's taken so long to get back to you, things have been a bit strange for the past month or so. I've installed the macro and run it as a batch process, half the files were produced brilliant results but the other half something strange happened. I think it's enlarged the image but cropped it to the original size. I've at attached some examples in case anyone can shed any light on the issue. Thanks, Daniel Quote
KFreshDetroit Posted August 30, 2023 Posted August 30, 2023 On 3/23/2020 at 7:58 AM, John Rostron said: My macros scale the image proportionally, but to not fit to a canvas. The Macro below applies a similar macro to the others, but scales the document to 720px max. It then Resizes the canvas to 720px square, with the image centred on a transparent background. Let me know if you wanted a white background. Fit to 720px square.afmacro 1.35 kB · 10 downloads It should work as part of a batch process. John This macro works great, but there were a couple things I wanted to ask how to do on there. Like how can I make it 1500px and black background? Fit to 720px square.afmacro Quote
John Rostron Posted September 3, 2023 Posted September 3, 2023 @KFreshDetroit, Sorry for the delay. You can easily amend the first part of the macro to resize to 1500px. However, you will need to set the background colour to black before you run the macro (unless any Affinity guru can tell me otherwise). Here is the resizing macro: Layer > Unlock Layer > Rasterize and TrimFilter > Distort > Equations (Enter the following in the x and y fields, then Apply) (x/1500)*max(h,w) (y/1500)*max(h,w)Document > Clip Canvas Layer > RasterizeSelect > Alpha Range > Select Partially Transparent Edit > Fill> Inpainting Select > Deselect The second part would be: Document > Resize Canvas Unlock the link between width and height, set both to 1500. Click on [Resize].Layer > New Fill Layer (This creates a Black Fill Layer on top of your image, assuming your background colour is set to black. )Arrange > Move Back One This moves the layer behind your image Here is the macro: Fit to 1500px square.afmacro John Quote Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
KFreshDetroit Posted September 4, 2023 Posted September 4, 2023 Thanks man! Someone else did one for me, but its nice to know the steps to do it! John Rostron 1 Quote
Recommended Posts
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.