Try setting the environment variable: GDIMAGETYPE=jpeg (note the 'e') before you run gd.t.
In reply to Re: GD and jpeg incompatibility by BrowserUk in thread GD and jpeg incompatibility by syphilis