note 43571 added to function.imagecreatefromjpeg
| From: | jonlupatyahoodotcom at rn2 dot php dot net | Date: | Fri, 25 Jun 2004 23:04:52 +0000 |
| Subject: | note 43571 added to function.imagecreatefromjpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71703@lists.php.net to get a copy of this message | ||
I played with "imagecreatefromjpeg()" function and, after a few tests, I found that the
filename that it requires as parameter should be only a simple filename: the function does not work
if in the string of the filename is specified a path to that file.
The quickest workaround found: do a chdir() to the directory of your image file before try to use
"imagecreatefromjpeg()" with your file as parameter.
I did not test the other functions (imagecreatefromgd2(), imagecreatefromgd(), imagecreatefromgif()
etc.), but I suppose that they work in the same way.
I think that little trick should be specified in the manual.
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43571
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43571&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43571&report=yes
Search -- http://master.php.net/manage/user-notes.php