![]() and draw a curve like this, smashing all of the extreme almost-white highlights to pure white, and bringing up the rest very aggressively: It's easier to see what you're doing in logarithmic view mode. Then, Grow that selection - the goal is to cover all of the places where gray shows through the hair but not get too much of the face: The example is in Gimp, but uses tools that you should be able to find in pretty much any program.įirst, use the "magic wand" selection tool with a very broad threshold (here, about 60): However, I want to show how you can get pretty good quick results with just fuzzy select and the Curves tool rather than paint bucket. I don't have Photoshop, so I'm not the best-suited to answer that.įor an alternate way to get the result you want, Ryan's answer is great and I definitely recommend that masking approach. Changing this the tool's mode to Luminosity may get you what you want. That's why you get the blue or the gray→gray effect. The color replacement tool isn't working for you because its default mode is "Color", which changes hue and saturation, but not luminosity (brightness/value). How can I change background color to pure white? Second method changes colors more accurately (without hair cuttings), but colors are "transparent". How to change background color properly? First method is quite untidy. Instead of real blue (dark) color I get this kind of transparent, unsaturated blue. I will show it on the example of Blue color (grey changed to grey is unnoticeable). This "white" color is kind of transparent or extremely unsaturated. Using Eyedropper Tool I selected background color and set white for replacement:īut it replaces background color to grey (not white). Secondly, I switched to Color Replacement Tool. Background-to-hair transition bounds are sharp. I selected background area with it and then applied Paint Bucket Tool. I need to change background color from grey to pure white įirstly, I did it using Magic Wand Tool. If everything went smoothly, the newly saved images should be in the batch folder you created.I have a picture (File format: JPEG | Сolor depth: 24): Note: With ImageMagick v7, use magick instead of convert, as soįOR %G IN (*.png) DO magick "%G" -transparent #FF00FF "batch\%G" Now we need to make a folder to save all the images in:Īnd now, the command to convert all the images:įOR %G IN (*.png) DO convert "%G" -transparent #FF00FF "batch\%G" For your situation, enter the following command: You need to change directories to where the images are saved. Once it's installed, fire up a command prompt (Start Menu, type cmd, hit enter) You may need to restart after installation for your PATH variable to be updated (I did) If you can tell me what OS you're using and a sample image, I can help you with a script to automate this for many imagesįirst, install ImageMagick. This can get a little hairy and some of the options they specify there probably aren't required for what you're trying to do, so as man suggests you can add background to the command For a little more intelligent background removal (floodfill), check out this tutorial: Masking Simple Backgrounds (floodfill) This is under the assumption that your "bright pink" is not part of any of the images. Where balloon.gif is the source image, -transparent specifies that you want a transparent bg, blue is the color you want to replace, and balloon_trans.gif is the completed image. I know you said you're not comfortable with command line tools, but ImageMagick can do this:Ĭonvert balloon.gif -transparent blue balloon_trans.gif
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |