l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2003 Feb 20 21:44

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Re: Gimp Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Re: Gimp Question



Replying to vox-tech, since it's an interesting question and others
might find the answers useful :^)



On Thu, Feb 20, 2003 at 04:16:03PM -0800, I was asked:
> Hey Bill, a quick question.
> 
> How do you work with transparent GIFs in the Gimp?  I'm not
> finding any way to identify or set the color that corresponds
> to transparency.

You do it by giving the image an alpha channel, and 'drawing' transparency
into it.

If starting from scratch, check "Transparent" for 'Fill Type' in the
"New Image" dialog.  The background will be the 'transparency' checkerboard
(rather than white or black or some other filled color).


If starting with an existing picture, right-click the canvas and
select "Add Alpha Channel" in the 'Layers' submenu.

At that point, you'll need to do something to make the pixels of your
choice transparent.  One way is to use the selection tools
("Select Contiguous regions", aka 'magic wand', is a good one),
and then select "Clear" from the 'Edit' menu.  (Again, right-click.)
The selection will become transparent (you can see checkerboard).

...But it sounds like you just want to make all pixels of a particular
color into transparency.

For that, there's "Filters" -> "Colors" -> "Color to Alpha."


Note that you can only do this in RGB (or presumably Greyscale) mode,
so you may need to temporarily convert your image from Indexed to RGB and
then back, if it was a GIF that you loaded originally.


Note that you could also use the NetPBM command-line tool "ppmtogif",
which has a "-transparent" option.  Something like:


  giftopnm IN.gif | ppmtogif -transparent rgb:ff/ff/ff > OUT.gif


Good luck!


-- 
bill@newbreedsoftware.com                    Was I useful?  Rate this message!
http://newbreedsoftware.com/bill  http://svcs.affero.net/rm.php?r=billkendrick
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!