Photoshop Blend If: The Secret to Vectorize Images in Seconds

PS Hacks
38 followers
#GJWart #photoshop #pshacks #tutorial #tuts #Easy_Photoshop #effect #howto #howfix #edit #editimages
AI Generated·May contain errors
Video Summary
AI GeneratedThis tutorial demonstrates how to transform a standard photograph into a fully editable vector illustration using Adobe Photoshop. By combining adjustment layers, specific filters, and a custom action, users can create a stylized, multi-colored vector effect that can be exported to Adobe Illustrator without any loss of quality.
Once I open this smart object and place my image inside,
the effect will be applied instantly like that.
And with our free action, we can transform it into a fully editable vector ready for export
to any vector software such as Illustrator.
Now, let's jump into Photoshop and get started.
Let's start by creating a new document.
2500 pixels by 2500 pixels will be ok.
Now, let's import our image.
You can find the download link for this image and other assets in the video description below.
Let's hide the background by selecting your object with the select subject button.
Then, mask it from here.
Now, select both layers and right click to convert them to a smart object.
Now, our layer is ready.
Let's see how to create the effect.
First, add a hue and saturation layer and desaturate the image by dragging the saturation
slider all the way to the left.
Add a levels adjustment layer but leave it unedited for now.
Finally, add a posterize layer which is the hero of today's effect.
Simply applying posterize layer on a desaturated layer will reduce the number of colors in your
image to a specified level.
So, at level 2, you'll get a black and white color image.
And at level 3, you'll get black and white and gray colors.
And at level 4, you'll get black and white and two gray colors.
And so on.
Set it to 6 for now and let's apply a few filters to our layer.
Go to filter, stylize and apply the oil paint filter.
Drag both stylization and cleanliness to the middle and uncheck lighting.
Since lighting is unchecked, both scale and bristle details will be inactive.
Keep them at any value and click ok.
The second filter will be the surface blur filter.
Just change the radius to 20 with a 10 threshold.
This will further smooth the skin, just like that.
The last filter will be the unsharp mask filter.
Set the sharpness amount to 150 and radius to 20 with a 0 threshold.
This will enhance the sharpness and contrast of our effect.
Finally, let's add a shadows and highlights layer.
Shadows, if you don't know, are the darkest areas in your image.
And highlights are the brightest areas.
The shadows slider brings back details of shadows by brightening them.
And highlights slider brings back details of the highlights by darkening them.
I've found that 40 and 20 are doing a good job with most images.
Despite being just an adjustment layer,
shadows and highlights will be applied as a smart filter, making it non-destructive and editable.
To finish the effect, press ctrl plus j to duplicate the layer.
Then go to filter, stylize and choose oil paint filter again.
This time, set the stylization and cleanliness sliders to 10.
Repeat the filter 5 more times from the latest applied filter.
And there you have it.
Our final vector effect is ready.
But it's just an effect right now.
We'll vectorize it later.
Save it as a PSD file for any later use.
So after creating our effect,
let's explore the main three settings for the best results for different images.
First up is the levels adjustment layer,
which controls the color distribution of our effect.
By moving the sliders, we can change how much black, white and gray we have in our image.
You should experiment with the sliders until you get a good result.
The second setting is posterize.
Posterize lets you choose the number of colors you want in your effect.
I'll keep it at 6 for now.
The third setting is the opacity of the top layer.
As you can see, some details are lost in the eyes.
And to bring back details in general,
you can either reduce the opacity of the top layer
or just add a layer mask to the top layer
and paint with a black brush over the areas you want to reveal.
You can skip this part if you want.
I'll just show you how I use blend if to vectorize my image and why I used it.
I've created these two gradients on top of each other,
both going from 100% black to 100% white.
Let's open the layer style of the top layer by double-clicking it.
Blend if is simply a feature that allows you to blend one layer with another
based on their brightness.
You can find the blend if feature right here.
It has two sliders,
the first slider for the current layer
and the second slider for layers below it.
Each slider has two handles,
one for the bright areas
and one for the dark areas.
Moving the bright handle of the current layer will hide the bright areas
gradually from the current layer
and moving the dark handle will hide the dark areas from the current layer.
And for the underlying layer slider,
moving the bright handle will show the bright areas of the underlying layer
and moving the dark handle will show the dark areas of the underlying layer.
And this is the main idea behind blend if.
To convert this image to a vector,
I need to vectorize each of the six colors separately.
In this part, I'll show you the process for the black color only.
So after merging all layers,
I'll open the layer style of the merged layer.
And since there's only one layer,
I'll use the current layer slider.
And by moving the bright handle,
all the bright areas will disappear gradually until I have only the black color.
I need to make a selection around the black color
by holding control and click on the layer's thumbnail.
Once the selection is ready,
I'll convert it to a work path from the paths panel.
And without going anywhere,
I'll create a solid color from here.
This results in a shape or vector layer like this.
You can use the pen tool to fully edit
or even export it to illustrator right away.
But we still need to vectorize the other five colors
and this is a very time-consuming process.
That's why I made an action to do the entire job for you.
Now let's return to the original state of our effect from the history panel.
And also let's hide the background
because I want to create a vector image without any backgrounds.
I'll simply double-click the layer's thumbnail to open it,
then hide or delete the background layer
and click control and s to update it.
Exit the smart object and also this document,
then get back to the main document.
Now it's time to import the action from the actions panel.
You can download this action for free from the video description below.
Just open the action from here,
select run and click on this little run icon to play it.
You will get some instructions.
Just click continue as I'll explain them to you right now.
When the action runs, a layer style window will appear.
Each time it does, drag this slider to reveal a new color each time and click OK.
Right now, I'll bring back the slider to reveal the white color and then click OK.
A color window will appear.
Use the eyedropper tool to pick the white color, then click OK.
Now drag the slider to reveal the next color.
Here is the new color.
Now pick it with the eyedropper tool.
Drag the slider until you see the third color.
Pick the third color with the eyedropper tool.
Drag the slider to reveal the fourth color.
Pick the fourth color.
Do this for the fifth color.
You need to be focused so that you won't do a color twice.
And finally, drag the slider all the way to the left to reveal the black color.
Once you pick the black color and click OK,
exit the action from here or just press the escape button.
And here we go.
Let's see what we've got.
Now we have six vector layers on top of each other.
And here is why I chose to use Blend If for the selections.
Because other tools like Magic Wand Tool or Color Range
would leave gaps between vector layers, making the overall vector output look very bad.
By picking the direct selection tool and selecting all layers,
you can clearly see the anchor points and paths of all layers.
Also, you can even edit whatever you want like that.
And if you upscale your image, let's say 10 times larger,
the vector result will not lose any quality at all.
Just zoom in to see the difference.
Look how crisp and high detailed our vector image is.
And here's how our raster image lost its quality.
Let's get back to the state of our image before upscaling.
Now let's run the second action to export our vector image to Illustrator.
A Save As window will appear.
Just choose EPS File Type from there and click Save.
Make sure that Include Vector Data is checked and then click OK.
Now let's open the EPS file we just saved with Illustrator.
Here is our vector image inside Illustrator.
A fully editable vector with vector data.
In this final step, we will use our PSD file to vectorize a new image in a few seconds.
Let's open the PSD file that we created earlier.
Double-click the smart object thumbnail to open it.
Once you get inside the smart object, import your new image there.
Remove the background using the Select Subject button as I explained before.
Hide or delete the old layers.
Then press Ctrl-S to update the smart object.
Get back to the main document.
For this image, I would like to change the Posterize levels to 4 to get a 4-color vector result.
Also, I will adjust the levels to get the best possible color distribution.
Finally, I will fix the eyes by decreasing the top layer opacity.
And here is the initial result.
To vectorize it, I will run the action as before.
Reveal and pick color by color as I explained earlier.
And here is the final result.
I forgot to mention that you can change each layer color by double-clicking its thumbnail like that.
That's it for today.
Don't forget to check out this amazing video next
where I show you how to sharpen images by blurring them in Photoshop.
Thanks for watching and see you soon.
