The embossing effect that you showed on the example of the “globe” is simply the general core of the convolution. You can accomplish the same effect using imageconvolution() :
$kernel = array(array(1, 1, -1), array(1, 1, -1), array(1, -1, -1)); imageconvolution($image, $kernel, 1, 0);
source share