ianrb Posted April 17, 2023 Posted April 17, 2023 Hello, why is it so? I make a macro to add a border to a 11x14 inch vertical photo as in first photo However, if the image is rotated 90 decrees and the same macro is added it appears as in second --- the image is not centered . Why is that so? Been puzzling , and annoying me for a long time . PS Have changed the border to black so it's easier to see Cheers Quote
R C-R Posted April 17, 2023 Posted April 17, 2023 It would be easier to help you if you included the *.afphoto file & the macro, or at least tell us what step(s) are in the macro & how you created it. ianrb 1 Quote All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
ianrb Posted April 18, 2023 Author Posted April 18, 2023 20 hours ago, R C-R said: It would be easier to help you if you included the *.afphoto file & the macro, or at least tell us what step(s) are in the macro & how you created it. Sorry -- had forgotten but will do it soon Quote
ianrb Posted April 18, 2023 Author Posted April 18, 2023 Help; how to share the macro? I know the export part but how do I get it to you 32mb afphoto file --- best way to share to the forum ? I do have dropbox Cheers Quote
ianrb Posted April 18, 2023 Author Posted April 18, 2023 This might ; or might not work (??)https://www.dropbox.com/scl/fo/rcwap217rkggojgfcumn0/h?dl=0&rlkey=q9yip9aqx6kyoxaoxiit66iem Quote
walt.farrell Posted April 18, 2023 Posted April 18, 2023 For future reference, all you should need to do, @ianrb, is drag/drop them onto a post here. Or click the "choose files..." link at the bottom of the composition window when posting. Quote -- 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
Dan C Posted April 18, 2023 Posted April 18, 2023 Hi @ianrb, Thanks for providing these files! I can confirm that Macro Transforms work based on a Scaled Percentage of the X & Y values, therefore when your macro is recorded in portrait your transform is applying a 97% scale transform to the X value, and a 98% scale transform to the Y value. Applying this macro to a landscape image then applies these scaled percentages to 'swapped' values from the original recording, resulting in unexpected results. Therefore I would recommend creating 2 different versions of this macro - one for Vertical images and one for Horizontal, to ensure the correct scaling percentage is being applied to the expected axis value. I hope this helps ianrb 1 Quote
ianrb Posted April 18, 2023 Author Posted April 18, 2023 11 hours ago, walt.farrell said: For future reference, all you should need to do, @ianrb, is drag/drop them onto a post here. Or click the "choose files..." link at the bottom of the composition window when posting. Cheers mate , I was actually doing that but thought a 32mg file would not go through Quote
ianrb Posted April 18, 2023 Author Posted April 18, 2023 9 hours ago, Dan C said: Hi @ianrb, Thanks for providing these files! I can confirm that Macro Transforms work based on a Scaled Percentage of the X & Y values, therefore when your macro is recorded in portrait your transform is applying a 97% scale transform to the X value, and a 98% scale transform to the Y value. Applying this macro to a landscape image then applies these scaled percentages to 'swapped' values from the original recording, resulting in unexpected results. Therefore I would recommend creating 2 different versions of this macro - one for Vertical images and one for Horizontal, to ensure the correct scaling percentage is being applied to the expected axis value. I hope this helps Thanks @Dan; thought that would be the answer and is OK for V 11x14 and H11x14 , however if a different ratio is used would require different macros . The white border in the macro is a new thing . I do have a macro to just add the stroke which is easy enough to manually reposition around the edge or a little inside the edge Cheers Quote
v_kyr Posted April 18, 2023 Posted April 18, 2023 7 minutes ago, ianrb said: ...however if a different ratio is used would require different macros... Which shows the overall limitations (and useless idiosyncosity) of Affinity's macro implementation. There's no real way to auto determine and deal with dynamic sizes and orientations for documents/images here, also there is no file i/o and dynamic text handling support etc. - All in all it's pretty useless for all those tasks, which can be done with other systems macro facilities in an elegant manner. ianrb 1 Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
ianrb Posted April 19, 2023 Author Posted April 19, 2023 9 hours ago, v_kyr said: Which shows the overall limitations (and useless idiosyncosity) of Affinity's macro implementation. There's no real way to auto determine and deal with dynamic sizes and orientations for documents/images here, also there is no file i/o and dynamic text handling support etc. - All in all it's pretty useless for all those tasks, which can be done with other systems macro facilities in an elegant manner. I have to agree ; the macro system is rather messy . Instead of make big/complicated macros, I find it easier to make a number of smaller macros and then make those smaller macros into a bigger one button macro . If changes are needed (seems often for me) I just need to edit the small part and then remake the big macro Cheers all Old Bruce 1 Quote
v_kyr Posted April 19, 2023 Posted April 19, 2023 47 minutes ago, ianrb said: I have to agree ; the macro system is rather messy . Instead of make big/complicated macros, I find it easier to make a number of smaller macros and then make those smaller macros into a bigger one button macro . If changes are needed (seems often for me) I just need to edit the small part and then remake the big macro Personally I don't hazzle around with APh and macros for such usually simple and silly to do tasks, instead I use things like ImageMagick and Python scripts to add borders and the like. Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
ianrb Posted April 19, 2023 Author Posted April 19, 2023 12 hours ago, v_kyr said: Personally I don't hazzle around with APh and macros for such usually simple and silly to do tasks, instead I use things like ImageMagick and Python scripts to add borders and the like. Never heard of those apps ; I wonder what else I don't know 😅 Maybe easier just not having using borders ! I have this layer effects macro for adding border and shadow to layer images . Ratio makes does not any difference and it all adjustable . Once I have made adjustments to one it's just a case of copy + paste FX to other layers Works well once I got the macro working , however there are limitations which I have forgotten now . Bottom is the basic macro Quote
v_kyr Posted April 20, 2023 Posted April 20, 2023 2 hours ago, ianrb said: Never heard of those apps ImageMagick ImageMagick - Image Edges, Border, adding space around the image ... ImageMagick examples - Cutting and Bordering Python is a very powerful interpreter based programming language, with a very rich module concept and which is also predestinated for scripting! ianrb 1 Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
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.