dzigakaiser Posted November 7, 2019 Share Posted November 7, 2019 (edited) Hey there, today, I set out to do a piece of environment art in Affinity Photo to see if it can hold up against PS. Unfortunately, it showed right away that a lot of my repetitive tasks require quite a few extra steps compared to my usual workflow. I have multiple renderings in the same resolution and want to drop them into one file but Affinity does not center dropped images so I have to drop, move and snap every image to the canvas. Since there are no smart objects in Affinity, I understand that the list of possible drag & drop features is rather short but an automatic centering option would be a big help. Thank you in advance! Sorry for typos, it's getting very late and my eyes are closing ^.^ TLDR: Is there a way to have dropped images (e.g. from the explorer) center automatically? Affinity Photo 1.7.3 on Win 7 Take care, Dziga Edited November 7, 2019 by dzigakaiser Quote Link to comment Share on other sites More sharing options...
Pšenda Posted November 7, 2019 Share Posted November 7, 2019 Maybe this. https://affinity.help/photo/English.lproj/pages/LayerOperations/align.html R C-R and dzigakaiser 1 1 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301 Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
Staff Dan C Posted November 7, 2019 Staff Share Posted November 7, 2019 Hi dzigakaiser 8 hours ago, dzigakaiser said: Is there a way to have dropped images (e.g. from the explorer) center automatically? Unfortunately this isn't possible automatically, however you could create a Macro which horizontally and vertically aligns your selected image, then simply run this Macro each time you place/drag and drop your image. I've created a quick screen recording below showing how to create this Macro, and how to run the Macro (from the Library Studio). I hope this helps! 2019-11-07 10-59-13.mp4 dzigakaiser 1 Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
dzigakaiser Posted November 7, 2019 Author Share Posted November 7, 2019 Thanks @Pšenda, unfortunately, as far as I can tell, that is basically as much extra work as snapping the layer to the canvas. You drop an image, then you have to select the pixel layer, click the alignment tool, then click both horizontal and vertical alignment buttons. Or am I missing something there?^^ EDIT: @Dan C I assumed it'll go the macro path ^.^ Thank you for the video! I guess I ll have to live with this for now ;D Crazy question: Is there actually a way to setup up a custom script to run whenever an image is dropped to the canvas? Some type of event handler? Cheers, Dziga Quote Link to comment Share on other sites More sharing options...
R C-R Posted November 7, 2019 Share Posted November 7, 2019 2 minutes ago, Dan C said: Unfortunately this isn't possible automatically, however you could create a Macro which horizontally and vertically aligns your selected image, then simply run this Macro each time you place/drag and drop your image. Rats! While I was busy testing a macro to do this & preparing a screenshot, @Dan C beat me to it. Anyway, this Align center.afmacro is what I created. Since it is a single macro file, it has to be imported in to the Macro panel with a document open, not the Library panel. I had hoped that by using the macro scale & alignment options it could automatically resize a placed or dropped image that is larger than the canvas to a smaller size that would completely fit into it but so far no luck with that. Any idea if that is possible? dzigakaiser 1 Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & 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...
v_kyr Posted November 7, 2019 Share Posted November 7, 2019 6 minutes ago, dzigakaiser said: Is there actually a way to setup up a custom script to run whenever an image is dropped to the canvas? Some type of event handler? Nope, no scripting and event handling, macros are all you have and you have to trigger them manually yourself. dzigakaiser 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 Link to comment Share on other sites More sharing options...
dzigakaiser Posted November 7, 2019 Author Share Posted November 7, 2019 3 minutes ago, R C-R said: Rats! While I was busy testing a macro to do this & preparing a screenshot, @Dan C beat me to it. Anyway, this Align center.afmacro is what I created. Since it is a single macro file, it has to be imported in to the Macro panel with a document open, not the Library panel. I had hoped that by using the macro scale & alignment options it could automatically resize a placed or dropped image that is larger than the canvas to a smaller size that would completely fit into it but so far no luck with that. Any idea if that is possible? Haha, thank you for going through the effort as well! I agree, the automatic resize indeed would be awesome if that's possible to do. 2 minutes ago, v_kyr said: Nope, no scripting and event handling, macros are all you have and you have to trigger them manually yourself. That is unfortunate. Maybe this will come in the future. Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted November 7, 2019 Staff Share Posted November 7, 2019 Hi dzigakaiser, Welcome to Affinity Forums Besides the macro you can also try this: go to the Snapping Manager (the arrow on the right of the magnet icon on the main toolbar) and tick Snap to Spread and Include Spread Midpoints. Then when drop and image on canvas and move it to the centre - you should see smart guidelines (red and green) appearing to help you precisely align/center the image within the canvas. You can also adjust/increase the Screen tolerance value on the top right of the Snapping Manager panel if you find the current setting to finicky to quickly centre the image. Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
v_kyr Posted November 7, 2019 Share Posted November 7, 2019 I believe the OP was more after an setable automatic image centering behavior option for dropped in images. So probably nothing which needs any aditional manual user interaction for positioning image adjustments afterwards (so to say auto place centered). 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 Link to comment Share on other sites More sharing options...
dzigakaiser Posted November 7, 2019 Author Share Posted November 7, 2019 Hi @MEB, thanks for welcoming me! v_kyr is correct that I was looking for an automated centering when dropping an image. The snapping option was my starting point from where I looked for faster alternatives;) Cheers, Dziga Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted November 7, 2019 Staff Share Posted November 7, 2019 Hi dzigakaiser, Sorry, from your replies above i though you were using the align button to center the image. I see now you were replying to Pšenda and were already using Snapping. v_kyr, I understood the request, Dan already said that it wasn't available. My reply was intended as another alternative to the suggestions posted in an attempt to speed up the process. dzigakaiser 1 Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
R C-R Posted November 7, 2019 Share Posted November 7, 2019 1 minute ago, dzigakaiser said: The snapping option was my starting point from where I looked for faster alternatives;) I could be missing something, but I cannot figure out how to do this in one step with a place or drag & drop operation because the drop cursor (or whatever it is properly called) is attached to the top left corner of the image. I have always thought that it would be more useful if it was attached to the center of the image.... Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & 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...
Move Along People Posted November 7, 2019 Share Posted November 7, 2019 - Quote Move Along people,nothing to see here Link to comment Share on other sites More sharing options...
carl123 Posted November 7, 2019 Share Posted November 7, 2019 @dzigakaiser If you use File > Place (instead of Drag & Drop) the centre of the image will follow the cursor and will "snap" to the horizontal and verticle centre points of the canvas. PS If you set the snapping Screen Tolerance to it's maximum (50) you don't have to be as accurate where you "drop/release" the cursor dzigakaiser 1 Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
v_kyr Posted November 7, 2019 Share Posted November 7, 2019 Since there is no automatic place centered option/mode, you have to use some of the above mentioned workarounds, or setup in prefs a shortkey for "Orientation -> Center" and use that afterwards. Dominik Gomółka 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 Link to comment Share on other sites More sharing options...
carl123 Posted November 7, 2019 Share Posted November 7, 2019 5 minutes ago, v_kyr said: Since there is no automatic place centered option/mode, you have to use some of the above mentioned workarounds, or setup in prefs a shortkey for "Orientation -> Center" and use that afterwards. On Windows File > Place is centred on the cursor. MACs may be different (?) Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
Move Along People Posted November 7, 2019 Share Posted November 7, 2019 - dzigakaiser and Dominik Gomółka 2 Quote Move Along people,nothing to see here Link to comment Share on other sites More sharing options...
v_kyr Posted November 7, 2019 Share Posted November 7, 2019 2 minutes ago, carl123 said: On Windows File > Place it centred on the cursor. MACs may be different (?) I meant when using just drag'n'drop instead as the OP initially adds images and the thread title tells. - For File > Place it behaves the same on Macs. 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 Link to comment Share on other sites More sharing options...
dzigakaiser Posted November 7, 2019 Author Share Posted November 7, 2019 19 minutes ago, haakoo said: Buy publisher and use the pictureframe object Haha, well if life would only be so easy ;P On a serious note, though, it's actually an interesting idea. It basically works as smart objects as I understand? Unfortunately, in the end it would slow me down way more than it would help 7 minutes ago, carl123 said: @dzigakaiser If you use File > Place (instead of Drag & Drop) the centre of the image will follow the cursor and will "snap" to the horizontal and verticle centre points of the canvas. PS If you set the snapping Screen Tolerance to it's maximum (50) you don't have to be as accurate where you "drop/release" the cursor That's a cool little workaround. I will stick to the macro workflow, as I like to keep snapping off when I am working^^ Very good to know this trick, though! 3 minutes ago, haakoo said: Or just don't drag from explorer. Copy from explorer(ctrl+c)>paste in photo will center object(ctrl+v) No resize though Well, now we are talking! That is actually the best one yet. Quote Link to comment Share on other sites More sharing options...
Move Along People Posted November 7, 2019 Share Posted November 7, 2019 - Quote Move Along people,nothing to see here Link to comment Share on other sites More sharing options...
dzigakaiser Posted November 7, 2019 Author Share Posted November 7, 2019 2 hours ago, haakoo said: This is what I meant and you can go on and edit your image in APhoto through the StudioLink or by edit in Photo Thanks for explaining it. The type of work I do requires me to drag and drop files into my document a houndred times per shot, adjusting stuff, painting, cutting, moving, mixing. Adding an additional piece of software for the placement of all CG layers is not the right direction. I was just shortly contemplating if having the publisher file as the master and then treat everything as smart objects somehow could work for me but I don't think I could work like this in a manner that is as efficient as it's required of me. Your solution to copy paste from my image library is the best approach for me when centering is required. Quote Link to comment Share on other sites More sharing options...
R C-R Posted November 7, 2019 Share Posted November 7, 2019 4 hours ago, carl123 said: If you use File > Place (instead of Drag & Drop) the centre of the image will follow the cursor and will "snap" to the horizontal and verticle centre points of the canvas. On my Mac, that works if I place the image with a click to drop it at its default size. Dragging to size the image places the top left corner at the start of the drag. However, if I hold down the CMD key before starting the drag it places it centered around the drag start point. Holding down CTRL previews the image at its default size before placing it. Holding down both CMD & CTRL before starting the drag previews the image at its default size & then, when I start dragging it is placed centered outward from the drag start point. The Status bar lists all the place options: I don't know if the Windows version offers similar place options, but if it does this would simplify centering objects on the canvas for the OP if placing instead of dragging & dropping is an acceptable alternative. 4 hours ago, v_kyr said: Since there is no automatic place centered option/mode, you have to use some of the above mentioned workarounds, or setup in prefs a shortkey for "Orientation -> Center" and use that afterwards. Maybe I am just having a 'senior moment' or something, but I can't find an entry for "Orientation -> Center" in AP's keyboard shortcuts preferences. Could you tell me which combo of popup shortcuts categories lists it? Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & 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...
v_kyr Posted November 7, 2019 Share Posted November 7, 2019 2 hours ago, R C-R said: Could you tell me which combo of popup shortcuts categories lists it? 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 Link to comment Share on other sites More sharing options...
dzigakaiser Posted November 7, 2019 Author Share Posted November 7, 2019 2 hours ago, R C-R said: Maybe I am just having a 'senior moment' or something, but I can't find an entry for "Orientation -> Center" in AP's keyboard shortcuts preferences. Could you tell me which combo of popup shortcuts categories lists it? It is listed under Photo -> Arrange Quote Link to comment Share on other sites More sharing options...
R C-R Posted November 7, 2019 Share Posted November 7, 2019 2 hours ago, dzigakaiser said: It is listed under Photo -> Arrange I thought that might be what was meant, but on my Mac "Align Center" only centers horizontally. To center both horizontally and vertically, I must use that plus "Align Middle." Perhaps I am still suffering from the aforementioned senior moment, but I do not see a way to combine the two into one keyboard shortcut. Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & 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...
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.