![]() |
PHP GD query
I am trying to get the index color of a image but still no luck. I have 2 files.
-- image.php [GD generated image] -- view.php [File to view the index color of image.php] image.php Code:
header("Content-Type: image/jpeg");Code:
$im = imagecreatefromjpeg('image.php'); |
Now thats just an assumption. But as far as I know imagecreatefromjpeg can only retrieve files with an .jpg and .jpeg ending. Thats why theres also a imagecreatefromJPEG -> for .JPG and .JPEG files.
Now, I might lie - but I think thats where you error occurs. I guess you can't fetch "jpg's" where the image is actually created by PHP/ -> or has an .php ending. But as I said - not sure whether I talk some bullshit here, just an theory... |
This will not work as the GD library does not run the PHP script and only tries to load the JPEG image.
An alternative to this could be the following PHP Code:
PHP Code:
|
| All times are GMT. The time now is 07:35 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0