public function downAppend($destPath) { $otherImage = new SimpleImage($destPath); $down = $otherImage->loadSourceIntoGD(); $source = $this->loadSourceIntoGD(); $product = imagecreatetruecolor($this->sourceImageWidth, $this->sourceImageHeight + $otherImage->getHeight()); imagecopy($product, $source, 0, 0, 0, 0, $this->sourceImageWidth, $this->sourceImageHeight); imagecopy($product, $down, 0, $this->sourceImageHeight, 0, 0, $otherImage->getWidth(), $otherImage->getHeight()); imagejpeg($product, $this->sourcePath, 90); imagedestroy($product); imagedestroy($source); imagedestroy($down); unset($otherImage); return true; }