function sharpen($amount) { $m = pwg_image::get_sharpen_matrix($amount); return imageconvolution($this->image, $m, 1, 0); }