How to Vectorize an Image in Photoshop
Instructions for creating a monotone picture
Adobe Photoshop is not a vector image editor. Adobe Illustrator ably handles that job. But what if you are on one of the basic Adobe Creative Cloud membership plans? Or you just have a subscription to Photoshop alone?
Photoshop has a few tools that allow you to draw vector shapes and paths from scratch. You can now even select multiple paths and change the appearance with features like Live Shape Properties. Still, learning to vectorize an image in Photoshop takes a bit more effort.
How to Convert a Raster Image to a Vector Image
Vector images can be scaled to any size unlike a photo that will pixelate if there’s a change in resolution. They are made of paths which are like “lines” drawn with mathematical equations that are scalable to any resolution.
To convert a pixel-based raster image to a vector image:
As always, you will be working with differentlayers in Photoshopto extract the paths from a raster image. Here’s a glimpse of the initial raster portrait and the final image after it has been vectorized.
The screenshots are from Adobe Photoshop CC (21.2.0). But you should be able to follow this simple tutorial with most of the recent versions of Photoshop.
Drag and drop the raster image into Photoshop or open it fromFile > Open. The sample image in this example is a simple portrait. If the object you want to vectorize has a busy background, then remove the background in Photoshop first.
There are different methods you can use to make a selection in Photoshop. The method you choose will depend on the nature of the image. For instance, if the image has straight edges, you can select theRectangular Marqueetool. If you want to choose by color, thenMagic Wandor theQuick Selectiontool is an option.
For portraits, theSelect Subjectcommand can select the main subject in a photo automatically. It’s a content-aware tool that uses smart algorithms to detect people in images. The Select Subject button is displayed on the toolbar when you pick a selection tool. You can also find it under theSelectmenu.
Go toSelect > Select & Mask> Select Subjectand it will smartly select the most prominent subject in a photograph.
Use theGlobal Refinementssliders to fine-tune the selection edges if necessary, and then output the selection to a new layer.
For more complex objects in your photo, theObject Selection toolis a powerful feature in Photoshop. It works just like theSelect Subjectbut helps you fine-tune the selection with more controls. Use this if you have a group of objects (or people) in your photo.
TheThreshold Adjustmentlayer transforms the current layer into a black and white image, and you can give a color image a neat one-color look later in the process.
In the Layers panel, add a newThresholdlayer by selecting theCreate new fill or adjustment layericon. Adjust the slider till you get your desired look. In the example image, we have used a value of 51.
TheColor Range commandunder theSelectmenu is like theMagic Wandselection. But it’s also better as it can select pixels that share the same or similar color with the eyedropper tool on that area of the image. You can pick up a range of colors by using the tool repeatedly on different areas of an image.
In this Photoshop tutorial, we want to use theColor Rangecommand to select all the white and black tonal areas.
Go toSelect > Color Range.
Use theEyedropper toolsto select all the different tonal areas in the image. Choosing the Grayscale preview in the dropdown will give you an idea of the areas selected.
ClickOKto close the dialog and come back to the threshold layer with the portrait selected.
A path in Photoshop is nothing but a line with anchor points at its two ends. In other words, they are vector line drawings. Paths can be straight or curved. Like all vectors, you can stretch and shape them without losing detail. Photoshop can convert selections into paths and vice-versa.
Select theMarqueetool or any selection tool. Right-click on the image, and chooseMake Work Pathfrom the context menu.
Also, set aTolerance Valuein the little box that’s displayed.
To make the path smoother, set a Tolerance value in the dialog box that pops up. A value of “1.0” should be ideal for the irregular paths around a portrait.
The Tolerance value determines how closely the path should “stick” to the contours of the image. The lower the value, the more closely the selection follows your path. Higher values will decrease the number of anchor points and make the path smoother. The thumb rule is — the simpler the object, the higher the tolerance.
But experiment with this value according to the complexity of your image.
Without clicking anywhere, go to the Layers panel and selectCreatenew fill or adjustment Layer.
Then, chooseSolid Colorfrom the menu. You can pick any color.
This step creates the vector shape layer on top of the Threshold layer.
This solid color fill layer can be customized to any color of your choice. In the next step, export this layer as a SVG image.
Right click on the layer and chooseExport As. You can also save the vector image fromFile > Export As.
In theExport Asdialog, choose SVG fromFile Settingsand click onExport.
You can now open the vector file in Adobe Illustrator or any other vector image editor.
Alternatively, you can export vector paths from Photoshop into Illustrator too. ClickFile > Export > Paths to Illustrator. This exports theSolid Color Fill Pathto Illustrator if you have it installed.
There Are More Ways to Vectorize an Image in Photoshop
This specific method is a simple way to get a monotone vector image from a color photo. You can use it as a template for any other image modification in Photoshop. Then scale it up or down to any size on paper or another medium.
There are other ways to vectorize an image in Photoshop. The one you follow will depend on the base photo and the results you want.
Saikat Basu is a seasoned freelance technology writer. He likes to forage for anything that makes our lives better… an app, a life hack, or a simple nugget of learning.Read Saikat’s Full Bio
Leave a Reply
Your email address will not be published.Required fields are marked*
Comment*
Name*
Email*
Website
Welcome to Help Desk Geek- a blog full of tech tips from trusted tech experts. We have thousands of articles and guides to help you troubleshoot any issue. Our articles have been read over 150 million times since we launched in 2008.
HomeAbout UsEditorial StandardsContact UsTerms of Use
Copyright © 2008-2024 Help Desk Geek.com, LLC All Rights Reserved