<?php $filename = $_GET['img']; $percent = 0.5; // Content type // Get new sizes $newwidth = $width * $percent; $newheight = $height * $percent; // Load $thumb = imagecreate($newwidth, $newheight); $source = imagecreatefromjpeg($filename); // Resize imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); // Output imagejpeg($thumb,'',100); imagedestroy($thumb); ?>
I w czym problem? Problem w tym, ze obrazki wynikowe maja dziwna jakosc, postrzępione, mało kolorowe - czasami nawet robią się czarnobiałe!
Proszę o pomoc.