Introduction: Turning a Pixel Image Into a Vector Image Using Adobe Illustrator CS5

Picture of Turning a Pixel Image Into a Vector Image Using Adobe Illustrator CS5

If you want to use one of the Fab Lab tools to cut out a picture that is made from pixels (any jpg, png, gif, etc) you'll have to turn it into a vector file first. 

I'm going to use this image for the tutorial:
http://commons.wikimedia.org/wiki/File:Smiley_Face.JPG

Step 1: What's a Pixel?

Picture of What's a Pixel?

Most images that you see on a computer are made from pixels, small rectangles that are different colors. If you look really close at your image you can see them.

The Fab Lab machines don't know how to cut pixels.

Look at the smiley face. Where should the machine cut? On the gray jagged part? Around the yellow part? It's unclear. 

We have to convert our image into lines and shapes that the machines can understand. We call this type of file a vector file. 

Another benefit of turning our file into vectors is that you can resize the image as big as you want and it won't get blurry or loose resolution. 

Step 2: Choose Your Image

Picture of Choose Your Image

This step is really important. Some images work better than others. Photographs don't work that well. There is an easy way to edit a photograph to make it work, I'll save that process for another tutorial. This one is for drawings. 

You really want to look for high contrast drawings. Drawings with dark areas and light areas, but not too much in between. If you're not sure if it will work, just give it a try. 

Generally, bigger images will turn out better. Again, if you're not sure if it will work, just give it a try.

In the case of the smiley face, I have a choice for which size I want, so I'm going to choose the biggest one. 

Step 3: Open Your Image in Adobe Illustrator

Picture of Open Your Image in Adobe Illustrator

Start Adobe Illustrator

At the top menu bar, go to File, Open, and then choose the file you want to open. 

Ignore the square behind the face in this tutorial. It's just the canvas drawn by Illustrator and it has no effect on the steps at all. 

Step 4:

Picture of

Click on the selection tool (the black arrow) in the top of the left tool bar and then click on your image to select it. You know it is selected when there is a blue box around your image. 

Step 5:

Picture of

Click on the small down arrow button next to Live Trace. See the red arrow in the picture above.

We are going to have Illustrator trace our image and turn it from pixels into lines and shapes; but first we will use the tracing options to do some tricks so that our image cuts better on the Fab Lab machines.


Step 6: Choose Tracing Options...

Picture of Choose Tracing Options...

Click on "Tracing Options..."

Step 7: Turn on Preview

Picture of Turn on Preview

Click on the Preview check box so that we can see a preview of our tracing results every time we make a change to the image. 

Step 8: Move the Tracing Options Box

Picture of Move the Tracing Options Box

Click and drag on the top of the Tracing Options box to move it off our image so that we have a better view. 

Step 9: Click Ignore White Check Box

Picture of Click Ignore White Check Box

Click the "Ignore White" check box. 

This is the trick that we need to do for the Fab Lab machines. 

When Illustrator traces all the shapes in this smiley face, it can find the eyes, the mouth, and the circle around the head. But it also sees two more shapes. Can you guess what they are?

Illustrator identifies the white area inside the head as well as the white area around the outside of the head as shapes. 

For example, when it does the tracing around the eyes, it will draw an oval around the eye once for the eye and again for the white space around the eye. This is a problem because the machines in the Fab Lab will see both of those overlapping ovals and they will cut around the eye twice! 

The easy fix is to make sure we click the Ignore White checkbox when we trace our image. Then Illustrator knows only to draw lines around the dark shapes. 

Step 10: Adjust Threshold Value

Picture of Adjust Threshold Value

If you are happy with the way it looks, go to the next step. If you are not happy yet, then try changing the threshold value. 

The Threshold value tells illustrator where we want to trace our lines. All pixels lighter than the Threshold value are converted to white, all pixels darker than the Threshold value are converted to black.

On the black to white color scale, black is 1 and white is 255; any number in between is some shade of gray.

The threshold value can be any number between 1 and 255. For most images, you'll find that the middle (128) is good. But if you don't like the way your image looks in the preview, you can adjust your Threshold value to see if if looks better.

Try 100. Does it look better? Try 200. Does that look better? Adjust the value until you're happy.

If you just can't get it to look right, then your image probably wasn't suitable to start with. Remember it's best to start with high contrast images: images that have dark darks and light lights and not too much in between.

Step 11: Click Trace

Picture of Click Trace

Click the blue Trace button to trace the image. 

Step 12: Click Expand

Picture of Click Expand

Click the Expand button to finish tracing our entire image. 

Step 13: Open the Color Window

Picture of Open the Color Window

Click on the Color Palette to open the Color Window.

Shapes in Illustrator have a "Fill" and a "Stroke". The fill is the area inside the shape and the stroke is the line around the perimeter, or outside, of our shape. 

Right now our shapes have a black fill color and no stroke color. We need to make two changes that so that the stroke color, the line around the outside of the shapes, is black. Also, the fill color should be no fill (clear) or white. This way the Fab Lab machines know to cut around the outside, or the perimeter, of our shapes. 

Step 14: Change Fill to Clear

Picture of Change Fill to Clear

In your Color Window make sure the Black box is on top of the White box with the red slash through it. That means that you can select the fill color.  

Just below those boxes click on the white square with the red slash through it. This will make the fill color of all your shapes clear (or no fill). 

Step 15: Change Stroke to Black

Picture of Change Stroke to Black

We are almost done! 

Click on the Stroke Select button hiding under the Fill select button. It's the white and gray square with the red slash going through it. 

Then select black for your stroke color. 

Step 16: Save and Finished!

Picture of Save and Finished!

Congratulations you can now change any pixel image into a vector image. 

Save your file! You're done!

Ignore the square behind the face in this tutorial. It's just the canvas drawn by Illustrator and it has no effect on the steps at all.

Comments

StefanK71 (author)2017-03-07

For some reason i dont have the tracing options button,... im using CS6... anybody knows why?

MrS5 (author)StefanK712017-10-19

On the menu bar click "Window" > "Image Trace"

Robert Monter (author)2017-03-28

Cool instruction !

AmrasElensar made it! (author)2017-02-22

This was really helpful! Clear, concise step by step instructions.

I learned a lot today. Thanks for taking the time to make this.

BenH256 (author)2017-02-10

What version of Illustrator is this?

bryanshore312 (author)2017-02-10

Thanks a lot for the help! I just learned about vector format from this http://www.coreldraw.com/en/pages/raster-to-vector...

and about the big difference, and I'd like to learn more and edit, so your tutorial really helps, thanks! :)

JessicaF88 (author)2016-06-14

cool, thanks! *flower*flower*

lawr2 (author)JessicaF882017-01-22

hey jessica are you single?

JuneM33 (author)2016-11-23

Thank for sharing. Still trying to get me head around this, really new to converting images to vector. I have been looking for a software to do this, been recommended Illustrator, I have downloaded a free trial, seems to be a great software but so may features to get used to using. goo.gl/smPVu8

_BJ_19 (author)2016-09-22

confusing

JessicaF88 (author)2016-06-14

cool, thanks! *flower*flower*

RebekkaH2 (author)2016-05-31

I need an image converted from a png to an AI file. Can anyone help?

RodolfoA15 (author)2016-04-26

Helpful and easy to follow. Thanx a lot

TyploshionT made it! (author)2016-03-31

Thanks! It helped me a lot. Here's the my result

Willium Jacks made it! (author)2016-03-12

Hi!

Thanks for your great & valuable post. It's really awesome. I also attached here an example of raster to vector creation image.

Applephx made it! (author)2016-03-02

I used this instructable to convert this bow tie image to a vector. My next step is to separate the shapes and make an instructables using manipulated vector graphics on how to tie a bow-tie ;)

bigmontana19 (author)2016-02-15

James!!!

Thanks so much! I've been searching youtube for videos on how to do this with no success and this step by step tutorial is SO easy! A million thanks!

Gnaws (author)2015-12-06

my GAWD, the 10 million ads on this site blow.

nadaall (author)Gnaws2016-02-05

Heard about AdBlock? Look for it in Chrome Web Store if you are using Chrome. It's also available for other browsers. Great tool. Helps a lot in dealing with all the banners, ads etc etc.

AndyL38 (author)2016-01-04

how do I colour it tho. does it keep it's colours?

jaymesdec (author)AndyL382016-01-04

No this is only for turning a pixel image into vector lines. No colors. There are some color live tracing options though.

-Smosh- (author)2015-08-13

Thank you so much.

I just finished making an illustration in illustrator, saved a png of it, and then accidentally deleted my ai file. Now I have me vector back. Thank you .

SwarnimaS (author)2015-06-07

I found that this one tutorial is quite helpful for beginners. It shows
entire process of turning a pixel image into a vector image. If you are looking
to know about importance of vector image, mentioned below:

http://www.graphictunnel.com/2015/03/convert-raster-graphics-to-vector-graphics.html

flompussfloyd (author)2015-01-18

Is there a program I can download my jpeg and It convert file ? thanks so much

exofinder (author)2014-10-30

Really great tutorial. It helped me a lot!

jjthephotoguy (author)2014-05-16

Thanks, this just helped me out!

jaymesdec (author)jjthephotoguy2014-05-24

That's cool! So you took a photo of the bottle and then traced that?

jaymesdec (author)jjthephotoguy2014-05-16

Great! So happy that you were able to use this. What is the project you're working on?

jjthephotoguy (author)jaymesdec2014-05-23

A homebrew label from an archaic image I found. Check it out- thanks!

shimmery1899 (author)2013-10-19

Weird but cool!:)

About This Instructable

4,255,736views

104favorites

License:

Add instructable to: