GD ve PHP ile artan resim boyutu

0 Cevap php

ben bu :-) için çok aptal gibi görünüyor

i have an image say x=200 y=200

i görüntü aynı kalmak istiyorum ama bir dipnot filigran 20 bir yüksekliğe sahiptir A.jpg Diyelim dahil

so i want a final image of 220 and y 200

ben bu şekilde denedim ama işe alışkanlık

$newimage=imagecreatetruecolor($width,$height+25);
imagecopy($newimage, $this->parentInstance->getOldImage(), 0, 0, 0, 0, $watermarksize[0], $watermarksize[1]);
imagecopy($newimage, $watermark, $dest_x, $dest_y, 0, 0, $watermarksize[0], $watermarksize[1]);
imagecopy($this->parentInstance->getOldImage(), $newimage, 0, 0, 0, 0, $dest_x, $dest_y);

0 Cevap