Determine position of one image in another with PHP
问题 I have two images(small and big). One of them contains another one. Something like one image is a photo and another one is a picture of the page of the photoalbum where this photo is situated. I hope you understood what I said. So how do I get coordinates (x,y) of a small image on the big one using PHP? 回答1: It is quite easy to do on your own, without relying on external libs other than gd . What you need to be aware of, is that you most likely cannot do a simple pixel per pixel check, as