One method is to use the original image/layer as its own layer mask. You'd create a duplicate of the layer, desaturate and invert it, pasting the greyscale result into the original layers layermask.
Update: Here are some step by step instructions:
Start with your flattened image:
Add a Saturation/Hue adjustment layer and turn down the Saturation until the ...
You can use blending to add transparency:
Right click the layer you want to add transparency to, pick the "Blending Options..." (If unable to pick 'Blending options' ensure that the layer is unlocked)
Locate the scale under the "This layer:" that is under the "Blend if" box
Press and hold the alt key while dragging on the white knob, the further you drag it ...
Using fast bucket fill instead of contour selection
Note: This tutorial is also available in PDF.
Add an alpha channel
Some image types lack a transparency channel; JPG for example. If this is the case, add an alpha transparency channel.
This is done by selecting Layer → Tranparency → Add Alpha Channel.
Bucket fill with colour [optional]
The next step ...
You can't save transparency to a .jpg. The file format simply doesn't support it. Anything that is transparent will become white when saved to a .jpeg.
Try .png or .gif, those file formats do accept transparency.
Indeed you should perform right selection.
Select->Color Range and click on the spot colored with color you want to select - you will see the change on the preview screen.
Also, you can choose the color from sampled colors drop down menu
Fuzziness should be set to 0.
If you press SHIFT while selecting (you can also click Shift and drag of the image) ...
First you'll want to desaturate the image (CMD+SHIFT+U), this removes any color and makes it easier to achieve pure white.
With your file open, choose Image->Adjustments->Levels. You'll get this:
Now bring the two outer triangles in like this (you'll need to play around with this until you get something you like):
You should end up with this!
Double click your background layer in the layer pallet (to make it into a standard layer)
Choose Selection -> Color Range
Click in the white area of the image
Bring the fuzziness up around 90
Hit DELETE and there you go!
I came up with a nice method for cleaning up pictures like this, and it works even when the background or lighting is uneven (that is, far worse cases than the example in this question) and it retains the colour.
My instructions are based on the Gimp, but it would be very similar in other programs like Photoshop.
EDIT: Gimp has a filter called "Difference ...
Advanced hair extraction tutorial
First off, plugins and simpler methods are available. This is if you want to get higher quality results. It is largely the same as ACEkin's answer except going into details and with visuals.
I'll be using this photo from Photo by
Ariana Prestes on Unsplash.com:
Note: I'm going to be doing the body in a separate layer so I'...
Content-aware fill is your best friend in this case.
Just make a selection around the word and go Edit -> Fill -> Content-Aware.
This usually does a pretty good job:
Click image for full resolution
Then you can either go back over it multiple times (maybe in smaller sections) with Content-Aware fill to clean it up, or you can play with ...
Heal selection with Gimp
For people who work with Gimp there is the plugin Resynthesize together with the Python script Heal Selection. On Linux the plugin comes with the package gimp-plugin-registry.
Select an area to remove from the image.
Choose Filters - Enhance - Heal Selection.
Adjust the pixel width (here 300), region (here all around), and fill ...
You can do this with GIFsicle, using the following options:
gifsicle -U --disposal=previous --transparent="#ffffff" -O2 anim.gif > anim_trans.gif
where anim.gif and anim_trans.gif are the source and destination file names, and #ffffff is the hex code of the color you want to make transparent (here, pure white).
(The important options here are -U / --...
There are different ways to do this, but the way I would do it in GIMP is roughly:
Color erase tool to remove the bulk of the sepia color.
Manual erasing of dark spots which are darker than light "image" areas, as these can't be done using levels.
Levels to tidy up.
Final color adjustments based on the image properties
In your case, the blue areas might ...
Sketch 3 does have some bitmap editing options, but they are very limited.
Here's more about Bitmap editing in Sketch.
To start editing an image, select it on the canvas and double-click. You will see the inspector update with a few special tools.
You might wanna try your luck with Magic wand and then the Vectorize option below it. Although you'd ...
Adobe changed the Delete/Backspace key functionality in Photoshop CS6 when you press the Delete/Backspace key on a locked Background layer.
Since pressing the Delete/Backspace key on a locked background layer merely filled the selection with the background color, Adobe changed the functionality to provide more options when hitting the key. By bringing up ...
If you have access to Photoshop, try the Magic Wand tool to select the background around the writing, and fiddle with the Tolerance to get it as close to the writing as possible, then delete or fill with white.
Another method is to use Image > Adjustments >
Selective Colour - With Selective Colour you can tweak the thresholds of each colour, so in ...
Since this is a relatively simple shape, I would just outline it with the pen tool and convert to a selection. Do note the little details around the corners and side buttons though. I would say that would take me a couple minutes at most.
Ramp the contrast up with curves.
Select your image and press Ctrl-M. This will bring up the curves dialog.
Move the top point left and the bottom point right until your image becomes black and white. (that rhymes!)
One of the most accurate, yet reasonably easy one is by using one of the (modified) RGB channels of the image as a mask:
Load your image (I'll be using one I found here) into PS, click on channels tab in color panel or if you don't see it, window > channels
Select the channel with most contrast - we ar going to use it as a mask, so focus on the edges (...
Let me outline another approach I find useful especially in the context of a signature for letters or PDF documents.
We can quite easily create a vector graphic from a scanned original signature. This can be done with a variety of applications. Here is how I made it using Inkscape.
Import the bitmap into an empty document (select "embed").
Select the "Path ...
Here are the steps I took:
Duplicate the base layer and select the copy.
Apply an edge detect filter (Filters -> Edge-Detect -> Edge...)
using these settings:
My goal here is to get clear contrast between my object and my background. I found Sobel worked the best and simply fiddled until I got this result.
Threshold the colors (Colors -> Threshold...) ...
Seems pretty straightforward with Photoshop CS6. I used the dropper tool to select the general background and did cleanup with the quick selection tool.
If the selection of the background ends up breaking due to the "grid pattern", you can work around it, like I did, by duplicating the later and applying a blur filter to smooth it out, then applying ...
1 - Make a quick selection with quick selection tool (w)
2 - Edit your selection select> refine edge
3 - Choose On layers View mode
4 - Define Edge detection to a correct radius (depends on resolution of your image), check Smart radius
5 - Adjust edge with different variables.
6 - Use Refine radius tool (E) on hair or fur
6 - Sometimes, you will ...
There are lots of methods to achieve what you want in Photoshop.
You can use a non-destructive method such as a layered Gradient Map.
Simply create a new adjustment layer from Layer > New Adjustment
Layer > Gradient Map...
Choose the Black to White Gradient and adjust the gradient stops
Make sure that the adjustment layer is on top of the ...
The issue you are faced here is a limitation of the GIF transparency which is limited to a single color from the palette. Semi-transparent colors are not possible.
"Transparency" of the original GIF file
To obtain an image with a transparent background but with keeping the shadows we can take the following steps (below done with GIMP but any other ...
This is very easy in Gimp. Just use the bucket tool to fill the background white, and export. Or if you want to go one stage further, then after that, use the select with the same colour tool, press delete (Making sure that your image has an alpha channel) add a new white layer, merge down and export as a jpg, png or whatever.
I opened a few of the SVGs in Inkscape, the grid is just an object. In Inkscape, just single click the grid and press the Delete key.
You can single click and drag the grid, just to make certain that you selected it and not part of the icon.
jPeg images save automatically with a flat solid background. You will be able to achieve saving your image with a transparent background to .png format.
It won't work with JPEG format.
Some reference to assist transparent background