????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.147.195.197 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/gd/tests/ |
Upload File : |
--TEST-- Testing imagetruecolortopalette() of GD library --CREDITS-- Rafael Dohms <rdohms [at] gmail [dot] com> --SKIPIF-- <?php if (!extension_loaded("gd")) die("skip GD not present"); if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible"); ?> --FILE-- <?php // Create a 200x100 image $image = imagecreatetruecolor(200, 100); $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF); $black = imagecolorallocate($image, 0x00, 0x00, 0x00); // Set the background to be white imagefilledrectangle($image, 0, 0, 299, 99, $white); // Set the line thickness to 5 imagesetthickness($image, 5); // Draw the rectangle imagerectangle($image, 14, 14, 185, 85, $black); ob_start(); imagepng($image, null, 9); $img = ob_get_contents(); ob_end_clean(); echo md5(base64_encode($img)); ?> --EXPECT-- 93c3077f1bdc372cd0b0db96db282985