resize(array( 'width' => 260, 'height' => 300, )); //-------------------------------------------------- // Frame $imageFrame = new image($imgRoot . '/frame.png'); //-------------------------------------------------- // Main $image = new image($imgRoot . '/treeBig.jpg'); $image->image_add($imageTile, array( 'width' => 260, 'height' => 223, 'left' => 20, 'top' => 20, 'repeat' => NULL, // TODO: Was $image->addImageTileToArea($imageTile, 260, 223, 20, 20); // image, width, height, left, top )); $image->image_add($imageFrame); $image->output_jpg(); ?>