Na sewrerze nazwa.pl plik gifa zmienia poprawnie (ale gif jes nieruchomy), natomiast na serwerze strefa.pl ten sam plik graficzny z roszerzeniem gif i w tym samym pliku w ogóle nie jest wyświetlany. Czym to może być spowodowane, ewentualnie jak najlepiej zmniejszać zdjęcia w locie?
<?php // File and new size $filename = $_GET['img_name']; // Content type { $gifek = 1; } else { $gifek = 0; } if ( $width < 60 AND $height < 60 ) { $newwidth = $width; $newheight = $height; } else { if ( $width < $height ) { $newheight = 60; } else { $newwidth = 60; } } if ( $gifek == 1 ) { $source = imagecreatefromgif($filename); $thumb = imagecreatetruecolor($newwidth, $newheight); $black = imagecolorallocate($thumb, 255, 255, 255); imagefill($thumb , 0,0 , $black); imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); imagegif($thumb); } else { $source = imagecreatefromjpeg($filename); $thumb = imagecreatetruecolor($newwidth, $newheight); imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); imagejpeg($thumb); } ?>