How to Make a png File (A Photo With a Transparent Background)

Examples of A PNG File with a Transparent Background

This photo of a Costa Rican traditional dancer was taken at night with a flash.  Many distracting images surrounded her.  This took a while to create.
This photo of a Costa Rican traditional dancer was taken at night with a flash. Many distracting images surrounded her. This took a while to create. | Source

Images with transparent backgrounds are very useful for creating modified images that can be used for publishing, making web sites and more. With a Macbook, you can make a screenshot of something and you create a png image fie automatically. But this file does not have transparency. You need photo editing programs to achieve that effect.

One png image that I have created is shown to the right, with its original shown below. This image was taken at night among a troupe of other dancers, spectators and various distractions. Having an image without all of these distractions is much more striking and attractive.

The program that I normally use for creating png files with transparent backgrounds is Adobe Photoshop, but there are other programs that can do the same thing, notably GIMP, which is a free, open source image editor. GIMP is available for both Mac iOS and PC operating systems.

Via text instructions and video below, I will show you how to edit images to make clear backgrounds with both of these photo editors.

Original jpeg photo from which the png file above was made.
Original jpeg photo from which the png file above was made. | Source

Making a Transparent Background png file with Adobe Photoshop

There are two different ways of making a transparent background in Photoshop (I am using version CS 4). If you have a simple background which is different in color than the object you want to isolate, you can use the tool known as "magic eraser." It is located below the history paintbrush on the left hand toolbar. When you click on an area with this tool, all of the portion of a similar color is removed.

If you have an object that blends with the background, be careful when using this tool, as it will remove part of the object that you want. If it does remove it, you can click on Edit>Step Backward to recover from the deletion, however. Then, using paintbrush, select an area that has a color that is different from this area and paint it. After it is painted, you can delete it again without having it delete the desired object.

The Magic Wand Tool. Another tool used in Photoshop is the "magic wand" tool. The magic wand tool will stick to a nearby object as you surround it with a border. When the object is completely surrounded, you can cut out the object and paste it onto a transparent background (shown by a checkered pattern on the editing screen). Again, if the object isn't clearly delineated from the background, this won't work well either. However, if that is the case, you can paint in blended-in areas to make them contrast from the background and then use that as part of object temporarily. Then you can delete it with magic eraser, or paint again and delete with the magic eraser as needed.

Corrections. Sometimes marginal areas are deleted no matter what you do. You can zoom in on the object and paint in these areas to match, working in great detail pixel by pixel, as needed. The healing tool can help blend in the areas to make the object look natural.

Using GIMP to Place an Image on Another Background

Using GIMP to Make A png File with An Erased Background

Moving an image with GIMP is done in two different ways as well. In the first method, you make the background first and then move an object on top of the background. You have to scale its size to fit the background, which also activates the eraser that gives you the png background. (Be sure to click the shrink merged box on the bottom left hand tool section to shrink an object proportionally). After it fits, then click on the eraser, using a soft-edge eraser, to erase the area immediately around the object and then broaden the erasure to eliminate background further out.

You can also cut out the object using the cut-out and paste method shown in the video below. This method may save time in some cases, as you don't have to zoom in to erase around the edges.

Using The Cut-Out And Paste Method

The End
The End

More by this Author


Comments 6 comments

Rui Carreira profile image

Rui Carreira 4 years ago from Torres Novas

This hub will be very useful. I learnt how to do this online a while ago.

Voted up!


Randy M. profile image

Randy M. 4 years ago from Liberia, Costa Rica Author

Thanks, Rui!


TravelAbout profile image

TravelAbout 4 years ago from United States

Thanks Randy. I have been wanting to learn some photoshopping and I will be using this as a reference. Very useful information and voted up!


Randy M. profile image

Randy M. 4 years ago from Liberia, Costa Rica Author

TravelAbout - Thanks for stopping by and reading. Let me know if you have any questions in the process.


The Dirt Farmer profile image

The Dirt Farmer 4 years ago from United States

Thanks, Randy M. Very useful! I downloaded GIMP but have not used it. Your hub reminds me to give it a try.


Randy M. profile image

Randy M. 4 years ago from Liberia, Costa Rica Author

DF: It takes a little experience to get used to GIMP, but since it is free, it's worth a try.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working