Sets the object's default compression type
![]() Quality: 80 Size = 7327 bytes |
Quality = 25 Size = 2755 bytes |
<?php
$image = new imagick( "opossum.jpg" );
$image->setCompression(imagick::COMPRESSION_JPEG);
$image->setCompressionQuality(25);
$image->setformat("jpeg");
header( "Content-Type: image/jpeg" );
echo $image;
?>
|
|
|