John Rostron Posted December 5, 2017 Share Posted December 5, 2017 The problem is to devise a formula for use in a macro or batch to re-size an image so that the longest side is a fixed length. So if the target size was (say) 800px, a 300×600 image would become 400×800px and a 2000×500px imge would become 800×200px. Firstly, ensure that you have an unlocked pixel layer. Select the move tool. In the Transform panel, ensure that the width and height are linked. Set Width as min(800, 800×w/h) Given that the layers are linked, this will automatically set the height. Now select Document > Clip Canvas. This removes the tranparent background. One curious outcome is that for a 3000×4000 portrait image, after a successful transform/clip, The Transform panel gives the dimensions as width: 800:px by height:600px. The Document Resize gives it (correctly) as width:600px by height:800px. 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...
John Rostron Posted October 30, 2018 Author Share Posted October 30, 2018 This has now been superseded by my macros on Resizing to a fixed maximum size. 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...
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.