To expand on utopicam's answer, sometimes your image might contain areas, such as shadows, that you'd want to be semitransparent. For example, let's say you have a photo shot in a lightbox, such as this nice and freely licensed picture of a Swedish wooden toy horse courtesy of Creative Tools:
In general, the first step would be to adjust the levels of the ...
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 ...
GIMP's Color to Alpha tool is very handy if you know how to use it, and this task seems particularly well suited for it:
Open the image in GIMP, and change it to RGB color mode if necessary.
Select Layer → Transparency → Color to Alpha...
Select black (#000000) as the color to make transparent.
Save the resulting image in PNG format:
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.
The main trick, in my experience, to adding smooth transparency to an image in GIMP is using the Layer → Transparency → Color to Alpha... tool. Of course, you have to know how to use it to good effect — on its own, all it does is make your images look all funny and translucent.
If I take the image you posted above, and just run Color to ...
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!
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) ...
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 ...
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!
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'...
Sounds like you need to crop certain parts of the jpgs (the main figure, for example) and delete the "background". You can do so using the lasso tool.
The gimp website has lots of tutorials and explanations. Check this http://docs.gimp.org/en/gimp-painting.html#gimp-concepts-selection and this out: http://docs.gimp.org/en/gimp-tool-free-select.html
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 / --...
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 ...
And just to be complete, here is the GIMP answer.
Colors > Color to Alpha ...
if "Color to Alpha ..." is greyed out you need to set the Image mode to something else than indexed, e.g.:
Image > Mode > RGB
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 ...
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 ...
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 ...
You could use the GIMP's select by color tool or the Magic Wand tool. Anyhow you do it, just select all the black pixels. Then, instead of deleting the selected pixels, apply a layer mask:
Layer -> Mask -> Add layer mask
Select the "Selection" radio button and be sure to select the "Invert mask" checkbox. Now, all the black pixels are transparent.
This will require a little experimentation. As with most things in Photoshop, there are multiple ways to get there.
Eyedropper a solid part of the red cloud to make it the foreground color.
Choose Select > Color Range. Set your Selection Preview to "Grayscale" and the preview thumbnail to "Image" so you can see what you're doing. Uncheck "...
Greenfish Icon Editor Pro has this functionality out of the box. It is a function called "Remove Matte", where you just specify the color component you want to be replaced with transparency. In your case black.
This is the result:
Greenfish Icon Editor Pro is totally free of charge. It is by far the best free icon editor I have ever tried. From the ...
Depending on the context and who you're talking to, this is referred to as "keying" (also referred to as Chroma Key), "matting" (mostly video), "masking" (you'll come across "clipping mask" as a term which is interchangeable with "mask" in most cases) or extraction. These are all names for the same general technique, which is the basis of Compositing.
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 (...
Yes, it's possible. Let me outline how it's done, using this image from Wikimedia Commons (by ed_g2s, licensed as CC-By-SA 3.0) as an example:
Open the black and white background versions as layers of the same image (using Open as Layers... or just open both and copy-and-paste one into the other). Move the white layer above the black layer if it's not ...
On the Layer window change the mode of the fire layer from "Normal" to either Screen or Lighten and see if thats what you want. That's the easiest way to remove black.
Beyond that you can also go into the Blending Options and adjust the slider at the bottom where it says, "This Layer" and move the black tab on the left side in a bit but the results aren't ...
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 ...