For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2006 > php version for image filter









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php version for image filter
Jean Pierre Daviau

2006-03-28, 6:57 pm

Hi to everyone,

I have PHP 5.0.4. Does this version support the imageFilter functions? If
not, which one does support it?

--
Thanks for your attention.

Jean Pierre Daviau
--
Easyphp1.8
Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
http://www.jeanpierredaviau.com


Jean Pierre Daviau

2006-03-28, 6:57 pm

I just install: PHP 5.1.2 (cli) (build

at prompt>php -check-f delme.php

Fatal error: Call to undefined function imagecreatefrompng() in C:\Documents
and
Settings\Jean Pierre\Bureau\delme.php on line 2

--------- delme.php ---------------------
<?php
$im = imagecreatefrompng('e.png');
if ($im && imagefilter($im, IMG_FILTER_BRIGHTNESS, 20)) {
echo 'Image brightness changed.';
imagepng($im, 'f.png');
} else {
echo 'Image brightness change failed.';
}

imagedestroy($im);
?>
---------------------------------------------------


Jean Pierre Daviau

2006-03-30, 7:57 am

php 5.2


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com