copy(); if (!imagegammacorrect($new->getHandle(), $input_gamma, $output_gamma)) { throw new WideImage_GDFunctionResultException("imagegammacorrect() returned false"); } return $new; } }