This is a useful if well-hidden feature, in OpenOffice Draw and Impress.
Let's say you've got some lovely graphics for your business, and you're going to put them on your web site.
So you add the logo, the first one, to your web page. But! Hey, what's up with that? There's a white background that didn't show up before. And you're not about to change the pink background.
So to get rid of the white background, here's what you do.
1. Create a new Draw document and insert the graphic. (File > New > Drawing, then choose Insert > Picture > From File and find your graphic.
2. To see things better, put a colored object behind the graphic, or make the background colored. To change the background, choose Format > Page, Background tab, and instead of None, select Color from the list. Select any color and click OK.
3. Choose Tools > Eyedropper.
4. Click on the graphic. Then click in the first checkbox on the left.
White is the default source color. However, if there's a different background color, or just to practice, you can then move your mouse over the white part of the graphic and click on it to select the color you want to get rid of.
5. Select Transparent in the corresponding dropdown list on the right. Again, this is the default.
6. Click Replace. The white will be replaced by Transparent.
7. If you didn't get rid of enough white, increase the tolerance to 20% and try again. Keep going as necessary; sometimes you need to do 50% or more, up to 99%.
8. Select the graphic and choose File > Export. Select the format you want: PNG, JPG, etc. Click Export, and enter any additional options if prompted.
Now you can insert the new picture wherever you need it.
Now, what happens with other pictures, when you try to replace one color with another color? It all depends on the picture. Here's what happens when I replace a light lavendar with a darker lavendar in the cupcake graphic. The following illustration shows before and after. It works better if you have something very structured where there are no gradations of colors.
Just wanted to let you know that I'm a regular reader - and an avid fan of Open Office. I'm just now beginning to explore the entire suite and have used Draw a few times to create beautiful flyers for my real estate business. Thanks for the tips and the work you put into this blog. It's appreciated!
Posted by: Karen Rice | October 08, 2007 at 10:27 AM
Thank you for this very useful tip. I would like to add that not all file formats seem to support transparency. I tried a few, and formats that do are gif, png and wmf. Formats that don't support the transparency are jpg, bmp and tiff.
Posted by: Pim the Pagter | December 26, 2007 at 10:59 AM
Good point! Yes, png and gif, and thanks for the tip about wmf.
Posted by: Solveig | December 27, 2007 at 03:49 PM
Thank-you, thank-you, thank-you SOOO much! this is indeed little known info.. and as I finally made the move from MS to OOo I was beginning to get jittery when I couldnt figure out one of my main image editing processes... I was on the verge of getting a new MS publisher intil I found this page. and now I am scouring the rest of the site for anymore lesser known design tips...keep up the good work!
Posted by: william mc connell | March 04, 2009 at 06:26 AM