Re: [vox-tech] GIMP and 8-bit GIFs

2002-07-02 Thread Henry House

On Mon, Jul 01, 2002 at 04:43:43PM -0700, Jan Wynholds wrote:
> As Henry mentioned, ImageMagick will work, but is _beastly_ slow.
> 
> If you had, say image.pnm, I think that mogrify might work in a similar way
> convert does:
> 
> # mogrify -format gif87 image.pnm
> 
> Will make image.gif87 (kinda weird extension).

Which may be readily renamed using a shell loop and basename(1):

for file in *.gif87; do mv -i $file `basename .gif87`.gif; done

for any number of files. Try doing that in a graphical file file manager ;-).

-- 
Henry House
The attached file is a digital signature. See 
for information.  My OpenPGP key: .



msg03045/pgp0.pgp
Description: PGP signature


Re: [vox-tech] GIMP and 8-bit GIFs

2002-07-01 Thread Jan Wynholds

As Henry mentioned, ImageMagick will work, but is _beastly_ slow.

If you had, say image.pnm, I think that mogrify might work in a similar way
convert does:

# mogrify -format gif87 image.pnm

Will make image.gif87 (kinda weird extension).

HTHO,

jan

--- nbs <[EMAIL PROTECTED]> wrote:
> On Mon, Jul 01, 2002 at 11:45:31AM -0700, Henry House wrote:
> > 



> Alernately,
> > save as PNG (or other convenient format) and use the command-line convert
> > program tp convert to GIF. It is beastly slow but effective and supports
> many
> > options to customize the output. It is part of the ImageMagick package.



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] GIMP and 8-bit GIFs

2002-07-01 Thread Alexandra Thorn


> Also, you can use NetPBM like so:
>
>   pngtopnm SOME.PNG | pnmquant -fs 256 | ppmtogif > SOME.GIF
>
>
> Where "pnmquant -fs 256" makes a Floyd-Steinberg dithered image of 256 colors.
> You can also use palettes and other good stuff here, too.  (I believe the
> format of the "palette" file you can use with 'pnmquant' is simply
> some .PPM file.)

Yay!  The above worked! :)  For some reason the convert command that Henry
didn't seem to do quite the right thing.  Anyway, the program seems to be
happy now.  Thank you Henry and Bill!

--Alex

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] GIMP and 8-bit GIFs

2002-07-01 Thread nbs

On Mon, Jul 01, 2002 at 11:45:31AM -0700, Henry House wrote:
> 
> If you are using Debian, then you need the 'gimp-nonfree' package. Other
> distros vary, but likely have a similar package for GIF support. Alernately,
> save as PNG (or other convenient format) and use the command-line convert
> program tp convert to GIF. It is beastly slow but effective and supports many
> options to customize the output. It is part of the ImageMagick package.

Ah - If .gif support (e.g. "nonfree") was the issue, then yeah.  What
Henry said. :)

Also, you can use NetPBM like so:

  pngtopnm SOME.PNG | pnmquant -fs 256 | ppmtogif > SOME.GIF


Where "pnmquant -fs 256" makes a Floyd-Steinberg dithered image of 256 colors.
You can also use palettes and other good stuff here, too.  (I believe the
format of the "palette" file you can use with 'pnmquant' is simply
some .PPM file.)


Good luck!

-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] GIMP and 8-bit GIFs

2002-07-01 Thread nbs

On Mon, Jul 01, 2002 at 11:36:03AM -0700, Alexandra Thorn wrote:
> 
> I need to create some images for some old software that can only handle
> 8-bit graphics (GIF87).  I've been messing with the GIMP, trying to create
> things in the right format, and am getting a little frustrated.  Can
> someone tell me how to do this?

WHen you're all done creating the image and are ready to save as GIF,
you can do one of two things:

  1. Save the image and let The Gimp convert it for you:

 Simply right-click the canvas, select "File", "Save As...", and then
 enter the name for the file, ending it with ".gif"
 (With the "Determine File Type:" pulldown set to "By Extension,"
 it'll just know.)

 When it goes to save, you should get a pop-up window labelled
 "Export File," which lets you have Gimp either convert the image to
 8-bit color, or 8-bit greyscale.  Click "Export" and it will save.

 Your image, as it lives in Gimp, is unchanged.  You'll want to
 load up the saved GIF file (in Gimp, Netscape, XV, whatever...) to
 make sure it looks ok.

or:

  2. Convert the image to 8-bit depth BEFORE saving:

 Right-click the canvas, select "Image", "Mode", "Indexed..."
 Choose your setting sin the "Indexed Color Conversion" window that
 pops up.

 Here, you can choose the number of colors (256 or less will save ok
 as GIF) and let The Gimp pick the best colors.
 ("Generate Optimal Palette.")

 Or... you can use a custom palette of colors, and have the best
 matches picked from it.  (e.g., the "Web" palette of 216 so-called
 "web safe" color)  ("Use Custom Palette")  [*]

 Finally, you can also just save in two colors: black, and white.
 ("Use Black/White (1-Bit) Palette")

 You can also choose how the resulting image is "dithered."
 Solid-colored images (e.g. cartoonish) should probably have
 "No Color Dithering," while something that was photographic or
 rendered, or has nice dropshadows or other 'colorful' details
 should have one of the other dithering options.
 I usually use "Floyd-Steinberg Color Dithering (Reduced Color Bleeding)"


 [*] To create a palette to use in the "Indexed Color Conversion"
 dialog, you can:

   1. Edit the color palette using The Gimp's palette editor:

  Right-click the canvas, select "Dialogs" and "Palette."
  Click "Edit" in the "Color Palette" window.
  (You can first pick some different existing palette from
  within the "Select" tab at the top of this window, BTW.)

  You can now edit, delete, import, and merge palettes.
  I won't go into too many details, but let's say you want to
  make a new palette.

  Click "New" (one of the "Palette Ops" at the right of the
  "Color Palette Edit" window).  Give your palette a name.
  Now you can create and edit colors in the palette.
  On the left area of the window, right-click.

  In the pop-up menu, select "New."  It will add a
  black (0x00, 0x00, 0x00) pixel to the palette (at the far left).
  Right click it (you can't really see it unfortunately, but it's
  there, at the very, very far left) and select "Edit" from the
  pop-up menu.

  Now you'll see a "Color Selection" dialog, which you should be
  used to from using The Gimp.  Set the color, hit OK.

  Lather, rinse, repeat.  :)

  or:

2. Create some image (a 16x16 picture, for example) and draw colored
   pixels into it.  (Use the "Pencil" tool in the toolbox, and
   use the tiny 1x1 brush.)

   *Ack* - I need to run to lunch, and forget exactly what you need
   to do now, but it has something to do with saving or exporting
   some file into your "~/.gimp-1.2/palettes/" directory.

   Sorry :)

  or:

3. Edit / make new palettes by hand in a text edtiro.
   The files inside your "~/.gimp-1.2/palettes/" directory are
   simply plain text files that look something like:

   GIMP Palette
   # My stupid palette
   123 123 123 grey
   255 255 255
   0 0 0 black
   0 0 255 Beautiful Blue
   0 255 0


Anyway - gotta run to lunch!  Enjoy! :)

-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] GIMP and 8-bit GIFs

2002-07-01 Thread Henry House

On Mon, Jul 01, 2002 at 11:36:03AM -0700, Alexandra Thorn wrote:
> 
> I need to create some images for some old software that can only handle
> 8-bit graphics (GIF87).  I've been messing with the GIMP, trying to create
> things in the right format, and am getting a little frustrated.  Can
> someone tell me how to do this?

If you are using Debian, then you need the 'gimp-nonfree' package. Other
distros vary, but likely have a similar package for GIF support. Alernately,
save as PNG (or other convenient format) and use the command-line convert
program tp convert to GIF. It is beastly slow but effective and supports many
options to customize the output. It is part of the ImageMagick package.

-- 
Henry House
The attached file is a digital signature. See 
for information.  My OpenPGP key: .



msg03021/pgp0.pgp
Description: PGP signature


[vox-tech] GIMP and 8-bit GIFs

2002-07-01 Thread Alexandra Thorn


I need to create some images for some old software that can only handle
8-bit graphics (GIF87).  I've been messing with the GIMP, trying to create
things in the right format, and am getting a little frustrated.  Can
someone tell me how to do this?

Thanks,
Alex

"...for I am like a doctor who cannot give up smoking, or perhaps worse
still, like an ecologist who cannot give up his car..."
   --Reg from Douglas Adams'
 _Dirk Gently's Holistic Detective Agency_

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech