10 Mayıs 2011, 21:48
|
#1 |
Keyifli~Üye
Üyelik tarihi: 09 Mayıs 2011
Mesajlar: 1.000
Puanlar: 11.694, Seviye: 1 | Üst seviye: 99%, 0 Gereken puan | | Koruma engeli
<?php $imgfile = "img.jpg"; $cropStartX = 300; $cropStartY = 250; $cropW = 200; $cropH = 200; $origimg = imagecreatefromjpeg($imgfile); $cropimg = imagecreatetruecolor($cropW,$cropH); list($width, $height) = getimagesize($imgfile); imagecopyresized($cropimg, $origimg, 0, 0, $cropStartX, $cropStartY, $width, $height, $width, $height); header("Content-type: image/jpeg"); imagejpeg($cropimg); imagedestroy($cropimg); imagedestroy($origimg); ?>
|
| |