moonbeetle Posted May 23, 2018 Share Posted May 23, 2018 I have hundreds of images of various sizes, mostly very large sizes, that I want to resize to a maximum width of 1920px, at 72DPI, RGB colour mode, JPG format. The height should be variable since the original images have various heights as well and I need to keep the aspect ratio to prevent distortions. (1)is this possible with Affinity Photo? (2)what would be the steps for the resizing to record as a macro. (I tried recording resizing one image and then use that recording for a batch job but AP used also a fixed height on every image resulting in many distorted images) Quote Link to comment Share on other sites More sharing options...
Staff Callum Posted May 23, 2018 Staff Share Posted May 23, 2018 Hi Moonbeetle, Welcome to the forums You should be able to do this by going to File New > Batch and set the width to 1920px then leave the height blank this should do what you are looking for C rob_smith, Alfred and biswas 2 1 Quote Please tag me using @ in your reply so I can be sure to respond ASAP. Link to comment Share on other sites More sharing options...
moonbeetle Posted May 23, 2018 Author Share Posted May 23, 2018 :-) So easy Quote Link to comment Share on other sites More sharing options...
TonyS Posted May 7, 2019 Share Posted May 7, 2019 Here I am 12 months later and looking for the same solution. Wow ..... It is so simple, and it works. Thank you to all posters seeking knowledge which can also benefit others like me. Old Bruce 1 Quote Link to comment Share on other sites More sharing options...
moonbeetle Posted May 7, 2019 Author Share Posted May 7, 2019 If you're using an older mac which runs the latest version of OS X you'll probably need to disable "Parallel processing" (bottom left corner of the batch window) in order to run a batch job. Quote Link to comment Share on other sites More sharing options...
paristo Posted June 12, 2019 Share Posted June 12, 2019 Just to throw a thanks. As I was having this challenge all the time when on computers without digiKam. And I was forced to use a some third party apps etc to get around the problem. Now I can just use the AP as I didn't never open the "New Batch" function.... Quote Link to comment Share on other sites More sharing options...
rob_smith Posted October 27, 2019 Share Posted October 27, 2019 (edited) Hi Callum, great idea for a feature! Unfortunately, there is no option to set/change size in the New->Batch window. Edited October 27, 2019 by rob_smith Quote Link to comment Share on other sites More sharing options...
R C-R Posted October 28, 2019 Share Posted October 28, 2019 18 hours ago, rob_smith said: Unfortunately, there is no option to set/change size in the New->Batch window. Do you not see the W & H fields in the New Batch Job window? Quote All 3 1.10.6, & all 3 V21.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.6; Affinity Designer 1.10.6; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
neoDIRECT Posted December 9, 2019 Share Posted December 9, 2019 Hello, I have an interesting question about this. What if the resize element is in the middle of marco? My case: I have a lot of bikes photos (different sizes) on a white background. And I want them trimmed a bit, add the same margin and change the layout from horizontal to square. The macro for this: 1. Flood select (3%, contiguous) - select the background in top left corner 2. Unlock the layer 3. Delete selection 4. Document > Clip canvas5. Resize image (unfortunately every bike is in other size): Width= 1200 and lock proportions 6. Resize canvas: 1200x1200px And everything would be great if "lock proportions" would work instead of the problem described above :) In Photoshop it was at least two ways I could do it: a) lock proportions was warking b) could set percentage setting canvas (to have the same margins...). So, do you have any idea how to Resize canvas first to have a square layout and the same margins after saving and resizing to 1200x1200? Or should I stop at 4, set resize on the batch process, then another macro on resizing canvas...? Thanks in advance for help. PS. Where can I add a feature request like: locking the proportions in macro; trimming the image on a uniform background? Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted December 9, 2019 Share Posted December 9, 2019 1 hour ago, neoDIRECT said: PS. Where can I add a feature request like: locking the proportions in macro; trimming the image on a uniform background? In the appropriate Feature Request forum Quote -- Walt Desktop: Windows 11 Pro, version 22H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 22H2, 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.6 (.1665) and 2.1.0 and 2.1.0. beta/ Affinity Designer 1.10.6 (.1665) and 2.1.0 and 2.1.0 beta / Affinity Publisher 1.10.6 (.1665) and 2.1.0 and 2.1.0betaiPad Pro M1, 12.9", iPadOS 16.6.1, Apple Pencil 2, Magic Keyboard Affinity Photo 1.10.7 and 2.1.0 and 2.1.0 beta/ Affinity Designer 1.10.7 and 2.1.0 and 2.1.0 beta/ Affinity Publisher 2.1.0 and 2.1.0 beta Link to comment Share on other sites More sharing options...
neoDIRECT Posted December 9, 2019 Share Posted December 9, 2019 Thank you! Quote Link to comment Share on other sites More sharing options...
carl123 Posted December 10, 2019 Share Posted December 10, 2019 13 hours ago, neoDIRECT said: 1. Flood select (3%, contiguous) - select the background in top left corner 2. Unlock the layer 3. Delete selection 4. Document > Clip canvas5. Resize image (unfortunately every bike is in other size): Width= 1200 and lock proportions 6. Resize canvas: 1200x1200px At first glance, everything looks like it should be achievable in one macro, with Step 5 probably needing an Equations Filter. But I'm a little concerned over Step 1 which looks like it could give unpredictable results depending on the image. If I was looking to trim each image by the same set pixel amount I would probably use a selection then grow/shrink the selection in pixels and delete them that way. Or if I was looking to trim the image by a set percentage amount relative to each image I would probably use another Equations Filter and delete them that way Quote Link to comment Share on other sites More sharing options...
neoDIRECT Posted December 13, 2019 Share Posted December 13, 2019 On 12/10/2019 at 6:46 AM, carl123 said: At first glance, everything looks like it should be achievable in one macro, with Step 5 probably needing an Equations Filter. But I'm a little concerned over Step 1 which looks like it could give unpredictable results depending on the image. Hi in this case - at Step 1 it was always white colour, so it definitely is not a universal solution. And how could I use an Equations Filter to resize an image? It seems a bit advanced to me Quote Link to comment Share on other sites More sharing options...
John Rostron Posted December 13, 2019 Share Posted December 13, 2019 @moonbeetle, @neoDIRECT, Try this: Layer > Unlock Layer > Rasterize Filter > Distort > Equations Enter the following in the x and y fields, then Applyx=x*w/1200 y=y*w/1200Document > Clip Canvas Layer > Rasterize and Trim John Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
DBMiller Posted December 18, 2019 Share Posted December 18, 2019 Very similar to what I was looking for as well! I have to resize images for our photo club site. In Photoshop I have an action that will resize the width to 600px and the height will scale appropriately then add a square frame in white around the entire image. I Affinity the macro will do all that except the height will be the same as the image I used to create the macro - throwing off the dimensions! Image 1: Original 8x10 test image. Image 2: after resizing and adding border (recorded this as a macro) Image 3: Image 2 with border added to show the result more clearly. Image 4: Image 3 after macro was run. The entire image is square as it should be but it has resized the original square to 8x10 ratio. However, the batch processing to resize works perfectly! Maybe I can combine that with a macro? Quote Link to comment Share on other sites More sharing options...
Kevin Ru Posted September 14, 2020 Share Posted September 14, 2020 I read through the above and I am working on the new batch job. Is there a setting that I am not seeing that prevents an image from being scaled up to the max size? I just ran a bunch of images and they fit in the resolution constraints but some images were scaled up. Quote Link to comment Share on other sites More sharing options...
csbc Posted May 15 Share Posted May 15 On 5/23/2018 at 8:44 AM, Callum said: Hi Moonbeetle, Welcome to the forums You should be able to do this by going to File New > Batch and set the width to 1920px then leave the height blank this should do what you are looking for C I only use Affinity rarely, it's beyond my normal needs, so I often find it tricky. I've opened 130 images of diary pages which I want to make the same width before converting to pdf, but the OK button is greyed out and I wonder what I'm doing wrong. Cheers, CC Quote Link to comment Share on other sites More sharing options...
carl123 Posted May 15 Share Posted May 15 It does not look like you have added any files to be processed Callum and R C-R 2 Quote Link to comment Share on other sites More sharing options...
R C-R Posted May 15 Share Posted May 15 1 hour ago, carl123 said: It does not look like you have added any files to be processed Which is done by clicking the "Add" button at the bottom of the window. Quote All 3 1.10.6, & all 3 V21.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.6; Affinity Designer 1.10.6; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
csbc Posted May 16 Share Posted May 16 Thank you both, easy when you know how! I assumed that as all the files were open they could be processed … Cheers, CC Quote Link to comment Share on other sites More sharing options...
Nigel Kendall Posted June 27 Share Posted June 27 Hi there, I have had the same problem, but the fixes given in this thread haven't worked for me. I work with MacOS 12.6.6 on an iMac late 2015. I am getting distorted images, which is a problem with over 600 images to size convert. Attached is a grab of the settings I am trying to work with. Any help appreciated Thanks Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted June 27 Share Posted June 27 13 minutes ago, Nigel Kendall said: I am getting distorted images, which is a problem with over 600 images to size convert. It's probably your 300 DPI macro that's doing it, especially if it's one you created. You can find some in the Resources forum that should work. Such as these: Quote -- Walt Desktop: Windows 11 Pro, version 22H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 22H2, 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.6 (.1665) and 2.1.0 and 2.1.0. beta/ Affinity Designer 1.10.6 (.1665) and 2.1.0 and 2.1.0 beta / Affinity Publisher 1.10.6 (.1665) and 2.1.0 and 2.1.0betaiPad Pro M1, 12.9", iPadOS 16.6.1, Apple Pencil 2, Magic Keyboard Affinity Photo 1.10.7 and 2.1.0 and 2.1.0 beta/ Affinity Designer 1.10.7 and 2.1.0 and 2.1.0 beta/ Affinity Publisher 2.1.0 and 2.1.0 beta Link to comment Share on other sites More sharing options...
David in Яuislip Posted June 28 Share Posted June 28 Otherwise do just the resizing in the batch and use exiftool to change the dpi setting, eg exiftool -Xresolution=96 -Yresolution=96 *.jpg Quote Microsoft Windows 10 Home, Intel i7-9750H CPU @ 2.60GHz, 16 GB RAM, 500GB SSD, 1TB Whirlygig, NVIDIA GeForce RTX 2060 Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10 Link to comment Share on other sites More sharing options...
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.