note 100338 added to function.imagecreatefromjpeg
| From: | Ray dot PaseursometimesusesGmail at osu1 dot php dot net | Date: | Fri, 08 Oct 2010 22:19:52 +0000 |
| Subject: | note 100338 added to function.imagecreatefromjpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173091@lists.php.net to get a copy of this message | ||
If you have a blank in the file name, and you use a local URL, this function works. Not so with a
fully qualified URL
<?php
$url = 'RAY_rgb 300x100.jpg';
$img = ImageCreateFromJPEG($url);
// WORKS PERFECTLY
$url = 'http://www.example.com/RAY_rgb
300x100.jpg';
$img = ImageCreateFromJPEG($url);
// FAILS Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library
reports unrecoverable error
----
Server IP: 192.41.42.26
Probable Submitter: 98.169.58.122
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php
Edit -- https://master.php.net/note/edit/100338
Del: integrated -- https://master.php.net/note/delete/100338/integrated
Del: useless -- https://master.php.net/note/delete/100338/useless
Del: bad code -- https://master.php.net/note/delete/100338/bad+code
Del: spam -- https://master.php.net/note/delete/100338/spam
Del: non-english -- https://master.php.net/note/delete/100338/non-english
Del: in docs -- https://master.php.net/note/delete/100338/in+docs
Del: other reasons-- https://master.php.net/note/delete/100338
Reject -- https://master.php.net/note/reject/100338
Search -- https://master.php.net/manage/user-notes.php