If I change it to:

im.png STDOUT   # it works fine


im.gif STDOUT # gives the following error

./fills.rb:31: undefined method `gif' for #<GD::Image:0x402504b0>
(NameError)

Is GIF no longer supported by the GD library?

-Derrick



> (offline mode: enter name=value pairs on standard input)
> ^D
> Content-Type: text/html
> Content-Length: 195
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD>
> <TITLE>This is a ruby test</TITLE></HEAD><BODY>
> <H1>A Test ruby page</H1><BR><IMG SRC="/cgi-bin/fills.rb"
> ALT=""></BODY></HTML>
> pigeon% ruby
>
>  The script "/cgi-bin/fills.rb" must just send as first line
>  "Content-Type: image/gif\n\n" before the output of the image
>
> Guy Decoux