Posted by Mara Guida on 12/11/05 19:25
NurAzije wrote:
> I wonder is there a way or a function to take a high resolution image
> and change it to low resolution ??
imagepjeg()
Look it up on the manual: http://www.php.net/imagejpeg
not tested
<?php
define('QUALITY', '10'); // try different values here
$filename = 'DSC09876.jpg';
$im = imagecreatefromjpeg($filename);
imagejpeg($im, 'low_' . $filename, QUALITY);
?>
Navigation:
[Reply to this message]
|