note 54131 added to function.imagejpeg
| From: | tobylewis at mac dot com | Date: | Fri, 24 Jun 2005 14:04:48 +0000 |
| Subject: | note 54131 added to function.imagejpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90897@lists.php.net to get a copy of this message | ||
After trying to get imagejpeg (and imagegif and imagepng) to save an image to a file for some time,
it finally dawned on me that perhaps the function would not automatically create the file named in
the second parameter.
I then used fopen to create a file prior to the call to imagejpeg and the image was successfully
written to the file. It did not seem to matter if fclose was called before or after the call to
imagejpeg.
I also tried to create a file outside of php and use it as the target for output, but this initially
failled because of permissions. Once I set all write permissions on this also accepted output from
imagejpeg.
----
Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54131
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54131&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54131&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54131&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54131&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54131&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54131&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54131&report=yes
Search -- http://master.php.net/manage/user-notes.php