resize(array( 'width' => 300, 'height' => 100, 'background' => '000000', )); $image->output_jpg(); ?>