How to convert a photo into an icon or favicon

by Klaus Graefensteiner 13. November 2007 08:59

    This article explains to the "Absolute Photoshop Beginner" how to create a web site icon aka Favicon from a photo using Adobe Photoshop CS3 and the ICON file format provided by Telegraphics. The instructions are created on a Windows XP SP2 computer.

    Step 1 - Download and Install Adobe Photoshop CS3:

    Download and install a trial version of Photoshop CS3 from www.adobe.com/downloads/ . I picked the Photoshop CS 3 Extended edition.

    clip_image001

    Reboot the computer, if the install asks you to do so.

    Step 2 - Download and Install the ICO File Format:

    The goal is to create an Icon graphic in Photoshop and save it as *.ico file format. Photoshop doesn't provide this file format out of the box, but you can download it from this web site: http://www.telegraphics.com.au/sw/.

    For Windows pick the appropriate link and push the download button. This will initiate a file download. Once the download is complete open the ICOFormat-1.6f9-win.zip file with Winzip.

    clip_image002

    Extract the ICOFormat.8bi file into the following folder: "C:\Program Files\Adobe\Adobe Photoshop CS3\Plug-Ins\File Formats". This is the folder that holds the Photoshop file format extensions on English US Windows, if Photoshop has been installed using the default settings. This folder might be different depending on your platform and configuration.

    Step 3 - Restart Adobe Photoshop CS3:

    Step 4 - Open the JEPG file that needs to be converted:

    My blog web site's theme has to do with tinkering. So I decided to take a picture of a tinker toy wheel. I am going to convert this picture into an icon file. First I open the JPEG file with Photoshop using the File->Open menu command.

    clip_image003

    Step 5 - Measure the size of your object with the Ruler tool:

    The Ruler Tool can be started by the Analysis --> Ruler Tool menu command. Use the Ruler tool to measure size of object. I this case the object is about 1600 by 1600 pixels big. This measurement will be needed to configure the Crop Tool's crop ratio in the next step.

    clip_image004

    Step 6 - Crop a square containing your object:

    Use crop tool and enter the dimensions of the area to be cropped. In this case it will be 1600 by 1600 pixels. The width and the height need to be the same value, because the target file output will be a square icon as well.

    clip_image005

    Then select the area to be cropped and execute the crop action by selecting the right mouse click menu "Crop".

    clip_image006

    This will be the resulting image after the crop action.

    clip_image007

    Step 7 - Cut out the actual object and remove the background:

    Now use the Quick Selection tool to remove the area around the object. In this case it seems to be easier to select the area around the object and then use the "Select Inverse" command.

    clip_image008

    Use the Right Mouse Click command "Layer Via Copy" to create a new Layer that shows the selected object. Then hide the Background layer. You can do this by clicking on the "Eye" button next to the Background layer in the Layers panel in the bottom right of your workspace.

    clip_image009

    Step 8 - Make Image Adjustments as necessary:

    Select Layer 1 and select the menu command Image --> Adjustments --> Brightness/Contrast… to adjust Brightness and Contrast. Apply other adjustments as needed.

    clip_image010

    Step 9 - Save work as Photoshop PSD file:

    Invoke the File --> Save As.. Menu command to save your workspace as IconFromPhoto.PSD.

    clip_image011

    Step 10 - Reduce photo to icon size:

    Now we are ready to convert this photo into an icon. First we need to reduce the image size. Remember, a Favicon is only 16 by 16 pixels big. To reduce the image size you must execute the Image --> Image Size menu command. Set the image size to 16 by 16 pixels and choose the "Bicubic Sharper" reduction algorithm.

    clip_image012

    The following photo shows the reduction result after zooming in.

    clip_image013

    Step 11 - Save photo in the ICO file format:

    Now it is time to save our photo as *.ICO icon file. Choose the File --> Save As.. Menu command and select the ICO (Windows Icon)(*.ICO) file format.

    clip_image014

    Lets look at the icon from the Windows File Explorer.

    clip_image015

    Not too shabby, isn't it? We are done. We just converted a photo into a 16 by 16 pixel windows icon that can be used as a web site icon aka Favicon.

    kick it on DotNetKicks.com

Tags: , ,

Blogging | Photoshop

About Klaus Graefensteiner

I like the programming of machines.

Add to Google Reader or Homepage

LinkedIn FacebookTwitter View Klaus Graefensteiner's profile on Technorati
Klaus Graefensteiner

Klaus Graefensteiner
works as Developer In Test and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Open Source Projects

PSUnit is a Unit Testing framwork for PowerShell. It is designed for simplicity and hosted by Codeplex.
BlogShell is The tool for lazy developers who like to automate the composition of blog content during the writing of a blog post. It is hosted by CodePlex.

Administration

About

Powered by:
BlogEngine.Net
Version: 1.6.1.0

License:
Creative Commons License

Copyright:
© Copyright 2013, Klaus Graefensteiner.

Disclaimer:
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design:
This blog theme was designed and is copyrighted 2013 by Klaus Graefensteiner

Rendertime:
Page rendered at 5/22/2013 6:50:54 PM (PST Pacific Standard Time UTC DST -7)