Re: GD Error on displaying png image
From: Jeffrey Silverman (jeffrey_at_pantsjhu.edu)
Date: 08/30/04
- Next message: nice.guy.nige: "Re: Probably a Silly Code Error"
- Previous message: Jeffrey Silverman: "Re: Execute code automatically"
- In reply to: Xiao Tencas: "GD Error on displaying png image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 30 Aug 2004 12:07:36 -0400
On Sun, 29 Aug 2004 16:52:40 +0200, Xiao Tencas wrote:
> The testcode I use:
> <?php
> $photo = "image.png";
> $im = @ImageCreateFromPng ($photo);
> header ("Content-type: image/png");
> ImagePng ($im);
> ?>
No clue. But to debug GD images, you can change the header to
"Content-type: text/plain" temporarily. This will dump the contents to the
screen as plain text, including error messages!
--
Jeffrey D. Silverman | jeffreyPANTS@jhu.edu **
Website | http://www.newtnotes.com
(** Drop "pants" to reply by email)
- Next message: nice.guy.nige: "Re: Probably a Silly Code Error"
- Previous message: Jeffrey Silverman: "Re: Execute code automatically"
- In reply to: Xiao Tencas: "GD Error on displaying png image"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|