Date: 07/31/02
- Next message: Kevin Stone: "Re: [PHP] text area with quotes"
- Previous message: Jason Reid: "Re: [PHP] text area with quotes"
- In reply to: mp: "[PHP] Creating Image..."
- Next in thread: hugh danaher: "Re: [PHP] Creating Image..."
- Reply: hugh danaher: "Re: [PHP] Creating Image..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To write a GD image to disk as a jpeg, do this instead:
$im = imagecreate(50,100);
imagejpeg($im, "test/im.jpg");
You don't need to use file handlers. Of course, without doing anything like
adding text or lines to $im, it will just be written to disk as a blank
image. :)
-Andy
> -----Original Message-----
> From: mp [mailto:lietuva <email protected>]
> Sent: Wednesday, July 31, 2002 11:11 AM
> To: php-general <email protected>
> Subject: [PHP] Creating Image...
>
>
> I want to create simple image...
> I execute this script:
>
> $im = imagecreate (50, 100);
> $fp = fopen("test/im.jpg","w");
> fwrite($fp, imagegd($im));
> fclose($fp);
>
> But there is some problems about this...
> Could somebody help me?
> Could somebody help me?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Kevin Stone: "Re: [PHP] text area with quotes"
- Previous message: Jason Reid: "Re: [PHP] text area with quotes"
- In reply to: mp: "[PHP] Creating Image..."
- Next in thread: hugh danaher: "Re: [PHP] Creating Image..."
- Reply: hugh danaher: "Re: [PHP] Creating Image..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

