PS Tutorial- removing background for transparent images.

Art tutorials only please. Anything else will be moved into Art & Signatures

PS Tutorial- removing background for transparent images.

Postby Xerxes on Thu Feb 12, 2009 6:51 pm

The aim of this tutorial is to show you how to remove the sections of background from images that you may want to use and to show how to apply this to forum avatars. :)

(Note: this is intended to be a generic method)

To go from this: Image ...to this: Image



Tools needed: Image

  1. Open the image you want to remove the background from. If it is a *.gif, you may need to select all the image and then copy the image data into a new document to edit it. This will be necessary for the image above.
  2. Create a new layer in the document, so that you have two layers (One blank one and one containing all the image data you want to keep). Alternatively, press ctrl-shift-N and enter a name for the new layer.

    Image
  3. Make sure the new layer is at the bottom of the layers window.
  4. On the left hand side, click on the button labelled "Primary colour palette" above, and select a colour that will be easy to distinguish from the image. For this image, red will be used.
  5. Press ctrl+g to select the "paint bucket" tool- it will fill any selected area with colour.
  6. Make sure the blank layer is still selected, and click anywhere on the canvas. You should not see any change except for the icon for the blank layer changing colour.
  7. Select the image layer now.
  8. Select the "Magic wand" tool (labelled above). Alternatively press "W".
  9. On the top of the window, you should see a number next to "Tolerance". Set it to 10.
  10. Click on an area of the image you want to remove. If areas of the image you don't want to remove are selected, press ctrl+alt+Z to undo the step. Choose a lower value for the tolerance and repeat.
  11. If you have only an area you no longer wish to keep, hit delete. You should see the background colour showing through now.Select another area by clicking on it. Seen below is an example of one part of the image removed.

    Image
  12. Continue until there are no areas left to remove. If there are parts with a lot of changing colour, then you will probably be better off using the "Polygonal Select" tool:

    • Press "L" or click on the button labelled above.
    • Make sure that "Feather" has a value of 0, otherwise you will have areas of the background kept.
    • Trace round the parts you want to keep by placing points at regular intervals, making sure you use more where the shape changes a lot.
    • Join up the end of the tracing, so that only the parts you want to remove are selected.
    • Press delete.
    • Continue until all areas you want to remove are gone.
  13. Once you have removed all the areas you no longer want, toggle the transparency of the background layer (the eye next to the layer). All the areas of the image that were the colour of your background layer should now look like a grey checkerboard (see below).

    Image
  14. If you only wanted to remove parts of background to make them transparent, you are done. Click "File"->"Save as..." then select ".PNG" from the dropdown menu. Click "Save" and select "None", then click "OK". Congratulations, you now have a high quality PNG with transparency! Uploading and linking the file in IMG tags on the forum will make all the transparent areas come up with the background colour. :)
  15. If you want to use the image on the forum as an avatar, you need to follow one more step. Click "Image"->"Image Size". Then on the next screen make sure "Constrain proportions" is turned off. Enter 100 for both the width and the height. Hit ok, and then follow the previous step to save. Note this works best with square or almost square images as it will stretch them if they are not.

Any questions, PM me. :)
Image
Image
Image
Image
ImageImageImage
Image

Image
"I forgot about unspec" - ApacheFlame 05/02/15
User avatar
Xerxes
UKCS Vice President
Moderator
UKCS iSeries Attendee
 
Player: Xerxes
STEAM_0:0:2949329
 
Posts: 10573
Joined: Wed Jul 09, 2008 10:30 pm

Re: PS Tutorial- removing background for transparent images.

Postby BenJy! on Thu Feb 12, 2009 7:10 pm

Great tut and made a new tut, thank you!
Image
User avatar
BenJy!
UKCS Sponsor
 
Player: GGGhost!
STEAM_0:1:10348274
 
Posts: 7729
Joined: Mon Jul 09, 2007 10:03 pm
Location: In Northern Darkness



Image

Re: PS Tutorial- removing background for transparent images.

Postby Xhiea on Mon Feb 16, 2009 3:32 pm

to get a cleaner result aswell may i add because you get that sort of grainy white line going round the render.

1. hold CTRL and click on the display of the layer in the pallete (the little picture next to the layer's name)
2. go to select->modify->contract
3. set the modification to 1 px and hit OK
4. press CTRL+SHIFT+I to invert the selection and then hit delete (make sure you are on the correct layer, the one with the render on)

this should make you end up with a cleaner outcome and you don't get the messy white outline

hope you dont mind me adding Xerxes :)
Image

Need help with signature text?

>>watch my video tutorial for help!<<
User avatar
Xhiea
UKCS Sponsor
 
Player: Xhiea is crap at css
STEAM_0:0:5403780
 
Posts: 8956
Joined: Tue Dec 07, 2004 4:48 pm
Location: York, North Yorkshire



Image

Re: PS Tutorial- removing background for transparent images.

Postby Xerxes on Mon Feb 16, 2009 7:37 pm

Heh, not at all, that's exactly the same thing I said to Benjy! privately. :)

Cheers for adding it. :D
Image
Image
Image
Image
ImageImageImage
Image

Image
"I forgot about unspec" - ApacheFlame 05/02/15
User avatar
Xerxes
UKCS Vice President
Moderator
UKCS iSeries Attendee
 
Player: Xerxes
STEAM_0:0:2949329
 
Posts: 10573
Joined: Wed Jul 09, 2008 10:30 pm

Re: PS Tutorial- removing background for transparent images.

Postby Supashadow on Tue Jun 09, 2009 11:49 am

Cheers X, was wondering how people did this for ages.. everytime i had a go it messed up :roll:
Image
User avatar
Supashadow
UKCS Sponsor
 
Player: CSB! o_O
STEAM_0:0:3661472
 
Posts: 2189
Joined: Thu Aug 30, 2007 10:42 pm
Location: Nottingham, United Kingdom.



Image


Return to Art Tutorials

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests