tuho79 -
Liittynyt: 09 Mar 2010 Viestejä: 1
|
Lähetetty: 6.7.2011 5:46 Viestin aihe: php: imagefilter? |
|
|
Eikös tuon imagefilter-komennon pitäisi olla toiminnassa, kun PHP:n versiokin on jo pitkälle yli 5?
Koodi: | <?php
//header("Content-Type: image/jpeg");
$im = @imagecreatefromjpeg("img.jpg");
imagefilter($im, IMG_FILTER_GRAYSCALE);
imagejpeg($im);
imagedestroy($im);
?>
|
Vastaus: Fatal error: Call to undefined function imagefilter() ...
Voisi ehkä johtua tästä (PHP manuaalista löytyi):
Lainaus: | Note: This function is only available if PHP is compiled with the bundled version of the GD library. | ..onkohan tälle sitten mitään tehtävissä? |
|