GD problem
| From: | Nils Magnus Eide Englund | Date: | Fri, 09 Jun 2000 11:57:11 +0000 |
| Subject: | GD problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-1384@lists.php.net to get a copy of this message | ||
When i try to output JPEG files in my PHP file, it outputs a BMP file!
I use IE 5.0 to view the pages, but the server is running Mandrake 7.0
with Apache 1.3.12 and PHP4. Here's an short version of my source:
Header("Content-type: image/jpeg");
$image = ImageCreate(300,300);
# In this part I edit the image, creates fancy lines and stuff =)
ImageJpeg($image);
ImageDestroy($image);
When I try to save the image, it defaults to a .bmp extension, and it
certainly is a BMP. (When I open it with other programs)
Does anyone have a clue on what I should do to fix this?
Nils Magnus Eide Englund