I need a script in PHP to merge two images using whether GD or Imagick libraries.
As visible in the attachments provided, the script should take 2 images (a source, and a frame) and merge them with the following rules :
- the frame png image is transparent, except the gray frame itself
- the result image must have a transparent border, outside of the gray frame pixels
- the source image must not be resized or modified, all the pixels hidden by the frame or outside of the frame will not be used in the resulting image
If you cannot see the attachments, here they are :