AffinityNewbie7 Posted January 11, 2019 Share Posted January 11, 2019 Hi, I was wondering how can I create a white border around my image (say, 20-pixel width). I tried the ''New Fill Layer'' option but could not make to work. Example - Quote Link to comment Share on other sites More sharing options...
Polygonius Posted January 11, 2019 Share Posted January 11, 2019 Select that layer you want to border and click "FX" in the bottom of layer panel. Than select stroke or frame or however its translated and play with size and color.... Quote OSX 12.5 / iMac Retina 27" / Radeon Pro 580X / Metall: on! --- WWG1WGA WW! Link to comment Share on other sites More sharing options...
AffinityNewbie7 Posted January 11, 2019 Author Share Posted January 11, 2019 Its called ''Outline'' in English version. Thank you, it worked. However, it is trimming the edge of the image. Is there a way to have the border on the outside of the image (without adding a new layer)? Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted January 11, 2019 Staff Share Posted January 11, 2019 Hi AffinityNewbie7, Welcome to Affinity Forums Set the Outline FX Alignment dropdown to Outside. Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
RobNJ Posted January 11, 2019 Share Posted January 11, 2019 Takes longer to describe, than to do, but..... Under "Document", choose "Resize Canvas", and increase it, by the width of your choice Add a pixel layer, drag it below the "background layer" Use "Flood Fill Tool" ON THE PIXEL LAYER!! ( I need to keep reminding myself ), in the color of your choice...I used black, in this. MEB 1 Quote Link to comment Share on other sites More sharing options...
RobNJ Posted January 11, 2019 Share Posted January 11, 2019 13 minutes ago, MEB said: Hi AffinityNewbie7, Welcome to Affinity Forums Set the Outline FX Alignment dropdown to Outside. Sounds easier than my method, I'll give it a try! Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted January 11, 2019 Staff Share Posted January 11, 2019 Hi RobNJ,I assumed AffinityNewbie7 was trying to add a white outine around images in the middle of a document as in his screenshot. If the image you are trying to add an outline has the same size as the canvas, setting the Outline FX to Outside is not enough since the outline will not be visible. In that case you have to enlarge the canvas as you were suggesting. [EDITED] The outline FX create rounded corners as carl123 pointed below. It's really not useful for this. RobNJ 1 Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
carl123 Posted January 11, 2019 Share Posted January 11, 2019 Using Outline FX set to Outside Alignment for picture frames/borders is pretty useless unless you want rounded borders There are various other methods that work but are not as easy as using an FX (if it worked correctly) MEB 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...
RobNJ Posted January 11, 2019 Share Posted January 11, 2019 10 minutes ago, MEB said: Hi RobNJ, I assumed AffinityNewbie7 was trying to add a white outine around images in the middle of a document as in his screenshot. If the image you are trying to add an outline has the same size as the canvas, setting the Outline FX to Outside is not enough since the outline will not be visible. In that case you have to enlarge the canvas as you were suggesting. You're right.... Off to make coffee!!! Quote Link to comment Share on other sites More sharing options...
R C-R Posted January 11, 2019 Share Posted January 11, 2019 (edited) The problem with the outline fx is it rounds the corners of the borders: To get square corners that look like this: one way is this: Use the Freehand Selection Tool (in polygon mode if the image is at an angle) to select the photo image & use copy & paste to add it as a new pixel layer. Duplicate that layer, move it below the new photo layer, & use the Move Tool to increase its size to the desired border width CMD click on its thumbnail to select it, & use the Paint Brush Tool set to white to make it completely white If desired, group the two new layers to make it easy to move or resize them as a unit. This is another thing that sounds more complicated than it really is. 17697.afphoto Edit: just saw @carl123's reply Edited January 11, 2019 by R C-R Quote All 3 1.10.8, & all 3 V2.5.5 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 Link to comment Share on other sites More sharing options...
Staff MEB Posted January 11, 2019 Staff Share Posted January 11, 2019 Why not simply use the Pen Tool with snapping enabled do draw the stroke (no fill) around the image and adjust it as needed (width, colour, alignment etc)? stokerg 1 Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
R C-R Posted January 11, 2019 Share Posted January 11, 2019 10 minutes ago, MEB said: Why not simply use the Pen Tool with snapping enabled do draw the stroke (no fill) around the image and adjust it as needed (width, colour, alignment etc)? I assumed the starting point was a flat, single pixel layer document like in the first post, with the photo & the background pattern all part of one raster image. In that case there would be nothing in the photo for the Pen Tool to snap to. Quote All 3 1.10.8, & all 3 V2.5.5 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 Link to comment Share on other sites More sharing options...
Staff MEB Posted January 11, 2019 Staff Share Posted January 11, 2019 The snapping isn't really necessary (it just helps to get the corner points quicker). The Pen Tool is precise enough to draw the stroke on a flat image and get the outline right. Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
toltec Posted January 11, 2019 Share Posted January 11, 2019 6 hours ago, AffinityNewbie7 said: I was wondering how can I create a white border around my image (say, 20-pixel width). If it is an image layer, you can do that very easily with Stoke: Select the image and set the Stroke to 20 point (or whatever). To get right-angle corners, set the Join to Mitre (as shown). To get the stroke to be outside the image, set Align to Outside (as shown). Another option to the above suggestions for a Pixel layer is to select the image by pressing Ctrl + left click on the image thumbnail. Go Select > Outline and set the number of pixels to 20 and set the Outline Alignment to be Outside. Then go Edit > Fill, which will fill the outline (only) with any colour you like. mykee 1 Quote Windows PCs. Photo and Designer, latest non-beta versions. Link to comment Share on other sites More sharing options...
R C-R Posted January 11, 2019 Share Posted January 11, 2019 7 minutes ago, MEB said: The snapping isn't really necessary (it just helps to get the corner points quicker). The Pen Tool is precise enough to draw the stroke on a flat image and get the outline right. True, but the Freehand Selection Tool in polygon mode is just as precise, & since I wanted to duplicate the photo so I could work with it independently of the rest of the image, with or without an additional border layer, I used that. It is, as I said, just one way of avoiding the rounded corners of using an outline fx. Quote All 3 1.10.8, & all 3 V2.5.5 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 Link to comment Share on other sites More sharing options...
HVDB Photography Posted January 11, 2019 Share Posted January 11, 2019 Following a hint of a few dedicated forum members, I add borders (inside / outside) via the Select > Outline function. The video shows how it's done. I did some macro recording following the procedure as shown in the video. See attachment. For the outside border it was necessary to extend the canvas with 200%, for the macro to function correctly with different image resolutions (especially high res) and for both landscape and portrait. These macros also offer the user the choice to change the width and color. Please note that the macros have been recorded and tested using a flattened document. I tested them thoroughly (I'm on Windows 10). Maybe try it out ... Outside border.mp4 Inside & Outside Borders.afmacros Quote Affinity Photo 2.3.1 Laptop MSI Prestige PS42 Windows 11 Home 23H2 (Build 22631.3007) - Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz 2.00 GHz - RAM 16,0 GB Link to comment Share on other sites More sharing options...
toltec Posted January 11, 2019 Share Posted January 11, 2019 3 hours ago, HVDB Photography said: Following a hint of a few dedicated forum members, I add borders (inside / outside) via the Select > Outline function. The video shows how it's done. You might also want to experiment with one of your macros using Matte. If you add something like 40 pixels to the canvas all round the image, you can just go Edit > Matte to fill the background. No need to use Outline or anything. HVDB Photography 1 Quote Windows PCs. Photo and Designer, latest non-beta versions. Link to comment Share on other sites More sharing options...
HVDB Photography Posted January 12, 2019 Share Posted January 12, 2019 8 hours ago, toltec said: You might also want to experiment with one of your macros using Matte. Cool thanks Quote Affinity Photo 2.3.1 Laptop MSI Prestige PS42 Windows 11 Home 23H2 (Build 22631.3007) - Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz 2.00 GHz - RAM 16,0 GB Link to comment Share on other sites More sharing options...
R C-R Posted January 12, 2019 Share Posted January 12, 2019 12 hours ago, toltec said: You might also want to experiment with one of your macros using Matte. FWIW, I tried creating a simple macro that just added 40 px to the width & height of a document & then applied a matte to it. I had no problems creating both steps in the macro, & the matte step even let me opt to choose the matte color, but (apparently) the add 40 px step is recorded as adding 40 px to the current document's size, so it doesn't work properly on any document that isn't that same size. toltec 1 Quote All 3 1.10.8, & all 3 V2.5.5 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 Link to comment Share on other sites More sharing options...
HVDB Photography Posted January 12, 2019 Share Posted January 12, 2019 14 hours ago, toltec said: You might also want to experiment with one of your macros using Matte. Matte works fine for the outside border as shown in the video. For an inside border, it doesn't work directly on the image layer, you'll need to add a new pixel layer on top, apply the matte and merge the layers or flatten the document. Quote Affinity Photo 2.3.1 Laptop MSI Prestige PS42 Windows 11 Home 23H2 (Build 22631.3007) - Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz 2.00 GHz - RAM 16,0 GB Link to comment Share on other sites More sharing options...
jmwellborn Posted January 12, 2019 Share Posted January 12, 2019 22 hours ago, toltec said: You might also want to experiment with one of your macros using Matte. If you add something like 40 pixels to the canvas all round the image, you can just go Edit > Matte to fill the background. No need to use Outline or anything. I quoted you here rather than duplicating your elegant "how to" above. Same issue, however. I am most definitely in the Needing Borders Department, so was glad to find this information. First, I am on MAC Sierra, so the steps may be slightly different, but I have found a few additional steps that I needed to make in order to use the Pixel layer, Select>Outline procedure. I highlighted the background layer containing the image, made a new pixel layer, and then clicking on the Image itself (not the thumbnail in the layers panel, which didn't work) went to Select>Outline. Nothing. I had to first go to Select>Select All and then Select>Outline in order to get the blinking lines. The Outline Selection popup worked, except that Alignment Outside would not create an outside border of blinking lines. (Screenshot missed those on left and top, but they are there.) Instead, it stopped at the edge of the image. Edit>Fill turned the whole image to a blank canvass. I was able to use Alignment Inside, or Centered. Edit>Fill worked perfectly. But I also found that I then had to go to Select>Deselect in order to stop the blinking lights. I have no clue how to use "Outside." (First image below is "Inside") losing part of the image. Help? Quote 24" iMAC Apple M1 chip, 8-core CPU, 8-core GPU, 16 GB unified memory, 1 TB SSD storage, Ventura 13.6.7. Photo, Publisher, Designer 1.10.5, and 2.5.5. MacBook Pro 13" 2020, Apple M1 chip, 16GB unified memory, 256GB SSD storage, Ventura 13.6.7. Publisher, Photo, Designer 1.10.5, and 2.1.1. iPad Pro 12.9 2020 (4th Gen. IOS 16.6.1); Apple pencil. Wired and bluetooth mice and keyboards. Link to comment Share on other sites More sharing options...
toltec Posted January 12, 2019 Share Posted January 12, 2019 1 hour ago, jmwellborn said: I quoted you here rather than duplicating your elegant "how to" above. Same issue, however. I am most definitely in the Needing Borders Department, so was glad to find this information. First, I am on MAC Sierra, so the steps may be slightly different, but I have found a few additional steps that I needed to make in order to use the Pixel layer, Select>Outline procedure. I highlighted the background layer containing the image, made a new pixel layer, and then clicking on the Image itself (not the thumbnail in the layers panel, which didn't work) went to Select>Outline. Nothing. I had to first go to Select>Select All and then Select>Outline in order to get the blinking lines. The Outline Selection popup worked, except that Alignment Outside would not create an outside border of blinking lines. (Screenshot missed those on left and top, but they are there.) Instead, it stopped at the edge of the image. Edit>Fill turned the whole image to a blank canvass. I was able to use Alignment Inside, or Centered. Edit>Fill worked perfectly. But I also found that I then had to go to Select>Deselect in order to stop the blinking lights. I have no clue how to use "Outside." (First image below is "Inside") losing part of the image. Help? I'm not 100% sure what is going wrong for you. First of all, you must Ctrl + click on the layer thumbnail, which I guess is Cmd + click on a Mac. Alignment Outside (or Alignment Centre) will only work if the layer is smaller than the canvas. Remember that the OP wanted to place a border around 'floating' images. It won't work if there is no space to fit it. So, using the 'floating' layer for the deer (floating on a transparent canvas) press Cmd + click on the layer thumbnail to get a selection (as shown). You can then use the Outline Selection (Outside) to make a selection border all round the deer image (say 50 pixels) Click apply, then you can fill the outline with colour. Edit > Fill. You will have to press Cmd + D to deselect afterwards. As I said, Outline will only work for images where there is space on the canvas to apply the border. Hope that explains it better ? jmwellborn and xMaxrayx 1 1 Quote Windows PCs. Photo and Designer, latest non-beta versions. Link to comment Share on other sites More sharing options...
firstdefence Posted January 12, 2019 Share Posted January 12, 2019 @jmwellborn You are missing the resize canvas step, you cannot add a border outside of the document bounds, what HVDB shows in his video is resizing the canvas with enough space to create a border, as long as the canvas is resized more than the border you want to add it can be clipped back as a final step. So... Make sure your background layer is a pixel layer not an image layer. If it is an image layer, right-click and select rasterise. Now you need to resize the canvas so select Document > Resize Canvas and if you want to make a 20px border just add 100px to give you enough space to play in, this will give you lots of transparent canvas but thats fine. Now you can select the background layer and select all and then do outline: outside and the "marching ants" that indicate a selection will show outside of the image. jmwellborn 1 Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
toltec Posted January 12, 2019 Share Posted January 12, 2019 34 minutes ago, firstdefence said: @jmwellborn You are missing the resize canvas step, you cannot add a border outside of the document bounds, what HVDB shows in his video is resizing the canvas with enough space to create a border, as long as the canvas is resized more than the border you want to add it can be clipped back as a final step. So... Make sure your background layer is a pixel layer not an image layer. If it is an image layer, right-click and select rasterise. Why can't they be Image layers jmwellborn 1 Quote Windows PCs. Photo and Designer, latest non-beta versions. Link to comment Share on other sites More sharing options...
jmwellborn Posted January 12, 2019 Share Posted January 12, 2019 Thank you both toltec and firstdefence! You are so kind to sort me out. Stupid me. I placed the image directly on the workspace, rather than creating a document and placing it there. So no wonder Clicking on the background layer didn’t do anything useful. Tomorrow I am going to regroup with your very thorough instructions. I am rewriting a book with many illustrations ranging from printed copies of ancient drawings from the 1300’s, paintings from the 1400’s to 1700’s, and 20th Century photographs. I want to create a uniform border size and color to tie all these disparate images into a cohesive pattern, so this very elegant solution is a Godsend. Then all I will need to do is crop and export to jpeg. Thank you again so much!!! firstdefence 1 Quote 24" iMAC Apple M1 chip, 8-core CPU, 8-core GPU, 16 GB unified memory, 1 TB SSD storage, Ventura 13.6.7. Photo, Publisher, Designer 1.10.5, and 2.5.5. MacBook Pro 13" 2020, Apple M1 chip, 16GB unified memory, 256GB SSD storage, Ventura 13.6.7. Publisher, Photo, Designer 1.10.5, and 2.1.1. iPad Pro 12.9 2020 (4th Gen. IOS 16.6.1); Apple pencil. Wired and bluetooth mice and keyboards. 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.