home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 2 / AUCD2.iso / internet / gifpack.arc / Docs / giftrans < prev   
Text File  |  1995-03-10  |  2KB  |  57 lines

  1.  
  2. To create your own transparent gifs the easiest way I have found is to list
  3. the colour map of your gif87, hopefully the transparent colour you want is
  4. black or white so is easy to find as the first or last colour index
  5. white will sometimes look like this
  6. Color 255: Red 247, Green 243, Blue 247, #f7f3f7
  7. and black is usually:
  8. Color 0: Red 0, Green 0, Blue 0, #000000
  9.  
  10. Examples to generate gif89:
  11. giftrans -t 0 inputgif -o outputgif
  12. giftrans -t #ffffff -o outputgif inputgif
  13. giftrans -b 255 -T inputgif > outputgif
  14.  
  15. Example to list colour table:
  16. giftrans -L inputgif
  17.  
  18. The command to generate your GIF with a transparent background should look
  19. something like the examples above. If you piped the output to a file then
  20. change the filetype of outputgif to gif. Using giftrans -L you will see that
  21. the file is now a GIF89a and has a transparent colour index of 255 or
  22. whichever colour index you specified.
  23.  
  24. The following was generated by 'giftrans -?' in a taskwindow
  25.  
  26. Usage: giftrans [-t color|-T] [-B color] [-b color] [-g oldcolor=newcolor] [-c comment|-C] [-l|-L|-V] [-o filename] [filename]
  27. Convert any GIF file into a GIF89a, with the folloing changes possible:
  28. -t Specify the transparent color
  29. -T Index of the transparent color is the background color index
  30. -B Specify the transparent color's new value
  31. -b Specify the background color
  32. -g Change a color in the global color table
  33. -c Add a comment
  34. -C Remove old comment
  35. -l Only list the color table
  36. -L Verbose output of GIFs contents
  37. -V Verbose output while converting
  38. -o Pathname of output GIF file
  39. Colors may be specified as index or in the #rrggbb form.
  40.  
  41. The source code and further information on giftrans can be obtained from
  42. the following two places.
  43.  
  44.  Original distribution site is
  45.       ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/giftrans.c
  46.  Additional info can be found on
  47.       http://melmac.harris-atd.com/transparent_images.html
  48.  
  49. This version along with source code can be obtained from me at
  50. simon@bigblue.demon.co.uk
  51. or
  52. Simon Truss
  53. 23 Charlton Gardens,
  54. Coulsdon
  55. Surrey
  56. CR5 1AS
  57.