Jump to content
AffinityNewbie7

Creating a white border around the image?

Recommended Posts

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....

 


OSX 10.13.5  / iMac Retina 27" / AMD Radeon R9 M380

Share this post


Link to post
Share on other sites

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.

 

Xnip2019-01-09_17-17-08 Small.jpg

Share this post


Link to post
Share on other sites
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! 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)


Due to the ongoing Brexit negotiations, punctuation, spelling and grammar will be used sparingly until further notice.

Share this post


Link to post
Share on other sites
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!!!

Share this post


Link to post
Share on other sites

The problem with the outline fx is it rounds the corners of the borders:
2100313494_17697outlinefx.jpg.1b182ddf39f945e3f093f311aaed4a73.jpg

To get square corners that look like this:
1556716096_17697Filllayer.jpg.b036124fd597be563bfcbe9b685c89e1.jpg

one way is this:

  1. 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. 
  2. Duplicate that layer, move it below the new photo layer, & use the Move Tool to increase its size to the desired border width
  3. CMD click on its thumbnail to select it, & use the Paint Brush Tool set to white to make it completely white
  4. 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 by R C-R

Affinity Photo 1.6.7 & Affinity Designer 1.6.1; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.6.11.85 & Affinity Designer 1.6..4.45 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.1.1

Share this post


Link to post
Share on other sites
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.


Affinity Photo 1.6.7 & Affinity Designer 1.6.1; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.6.11.85 & Affinity Designer 1.6..4.45 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.1.1

Share this post


Link to post
Share on other sites
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).

stroke.jpg.f5d1a5370334d450323a04b40c75cd3f.jpg

 

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.

outline.jpg.6d01b46df874206a371e638cf8cdc31f.jpg

full.jpg.e08ebe3fd31e0324313a7e4171f6b3ed.jpg


Windows PCs. Photo and Designer, latest non-beta versions.

Share this post


Link to post
Share on other sites
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.


Affinity Photo 1.6.7 & Affinity Designer 1.6.1; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.6.11.85 & Affinity Designer 1.6..4.45 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.1.1

Share this post


Link to post
Share on other sites

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 ...

Inside & Outside Borders.afmacros


Affinity Photo 1.6.5.123

Windows 10 / 64 bit processor - AMD A4-5000 APU with Radeon HD Graphics  1.50GHz - RAM 8,00 GB
Calibrated Monitor (Datacolor Spyder5Pro)

 

https://plus.google.com/u/0/+HubertVandenBorre
https://www.youtube.com/c/HubertVandenBorre
https://unsplash.com/@trebhu

Share this post


Link to post
Share on other sites
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.


Windows PCs. Photo and Designer, latest non-beta versions.

Share this post


Link to post
Share on other sites
8 hours ago, toltec said:

You might also want to experiment with one of your macros using Matte.

Cool thanks


Affinity Photo 1.6.5.123

Windows 10 / 64 bit processor - AMD A4-5000 APU with Radeon HD Graphics  1.50GHz - RAM 8,00 GB
Calibrated Monitor (Datacolor Spyder5Pro)

 

https://plus.google.com/u/0/+HubertVandenBorre
https://www.youtube.com/c/HubertVandenBorre
https://unsplash.com/@trebhu

Share this post


Link to post
Share on other sites
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. :(


Affinity Photo 1.6.7 & Affinity Designer 1.6.1; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.6.11.85 & Affinity Designer 1.6..4.45 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.1.1

Share this post


Link to post
Share on other sites
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.


Affinity Photo 1.6.5.123

Windows 10 / 64 bit processor - AMD A4-5000 APU with Radeon HD Graphics  1.50GHz - RAM 8,00 GB
Calibrated Monitor (Datacolor Spyder5Pro)

 

https://plus.google.com/u/0/+HubertVandenBorre
https://www.youtube.com/c/HubertVandenBorre
https://unsplash.com/@trebhu

Share this post


Link to post
Share on other sites
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?1120464436_ScreenShot2019-01-12at4_02_13PM.thumb.png.23e606344bcb5670a83645fef865bbbc.png1593837559_ScreenShot2019-01-12at3_56_22PM.thumb.png.67b3cd6abd99d44b3ddccce566962f28.png

Share this post


Link to post
Share on other sites
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).

deer1.thumb.jpg.af239cf63e5ebd3b3b9a2b677f68fc30.jpg

You can then use the Outline Selection (Outside) to make a  selection border all round  the deer image (say 50 pixels)

out.jpg.ff12c3d94ec5621fe49a1ed3a06a968e.jpg

deer2.thumb.jpg.803cc8c756cf83a106a3c076477259b2.jpg

Click apply, then you can fill the outline with colour. Edit > Fill.

pink.thumb.jpg.c5b68c79260edb70ff51e59a0d86fbd2.jpg

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 ?


Windows PCs. Photo and Designer, latest non-beta versions.

Share this post


Link to post
Share on other sites

@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...

  1. Make sure your background layer is a pixel layer not an image layer.
  2. If it is an image layer, right-click and select rasterise.
  3. 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.
  4. 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.

iMac 27" Late 2015 Fully Loaded, iMac 27" Mid 2011 both running High Sierra 10.13.6 - Affinity Designer/Photo, Publisher Beta 1.7.0.140, Illustrator CC, Inkscape, Blender, Sketchup, Pepakura Designer, MTC, Pixelmator & Pixelmator Pro + more... XP-Pen Artist-12, - iPad2 iOS 9.35 B|  Instagram & Flickr - Affinity Designer (ADe) Tutorials - Affinity Photo (APh) Tutorials - Public Domain Images

Share this post


Link to post
Share on other sites
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...

  1. Make sure your background layer is a pixel layer not an image layer.
  2. If it is an image layer, right-click and select rasterise.

Why can't they be Image layers :S

 


Windows PCs. Photo and Designer, latest non-beta versions.

Share this post


Link to post
Share on other sites

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!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×