<?php $logo_file = "http://virtualbrothers.org/UP/images/4irw.png"; $image_file = "http://www.zerovb.com/Up/Gm-Imgs/Rip/Need.4.Speed.Underground.2.Poster.Jpg"; $targetfile = "POSTER.jpg"; $photo = imagecreatefromjpeg($image_file); $fotoW = 250; $fotoH = 350; $logoImage = imagecreatefrompng($logo_file); $logoW = imagesx($logoImage); $logoH = imagesy($logoImage); $photoFrame = imagecreatetruecolor($fotoW,$fotoH); $dest_x = $fotoW - $logoW; $dest_y = $fotoH - $logoH; imagecopyresampled($photoFrame, $photo, 0, 0, 0, 0, $fotoW, $fotoH, $fotoW, $fotoH); imagecopy($photoFrame, $logoImage, 0, 0, 0, 0, $logoW, $logoH); imagejpeg($photoFrame, $targetfile); echo '<center><img src="'.$targetfile.'" /></center>'; ?>
Eu quero redimensionar a imagem pra 250x350, nesse código ele ta cortando a imagem em 250x350, e não redimensionando..
se vcs puderem me dar uma força awe..
