[BlueOnyx:19877] Re: GD image problem

Michael Stauber mstauber at blueonyx.it
Sun Jul 24 17:05:40 -05 2016


Hi Bart,

> imagejpeg ($im,'',80);

This last line in your gd.php is the problem. When I tried that code on
a 5209R of mine I got this error message in /var/log/httpd/error_log:

[Sun Jul 24 17:00:41.566263 2016] [proxy_fcgi:error] [pid 21758] [client
181.140.32.231:53482] AH01071: Got error 'PHP message: PHP Warning:
imagejpeg(): Filename cannot be empty in /home/.sites/28/site1/web/gd.php'

See: http://php.net/manual/en/function.imagejpeg.php

So you need to change this ...

imagejpeg ($im,'',80);

... to this ...

imagejpeg ($im);

... and it'll work.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list