note 54131 deleted from function.imagejpeg by cmb

From: Date: Tue, 04 Oct 2016 15:20:27 +0000
Subject: note 54131 deleted from function.imagejpeg by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206751@lists.php.net to get a copy of this message
Note Submitter: tobylewis at mac dot com ---- 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.

« previous php.notes (#206751) next »