So I have a user image and a user specified point of interest based off of that image.
I have retrieved that point of interest from a XML file and put them into variables so I have 2 points.
x= 246
y= 73
My question: How can I crop a 45 by 53 thumbnail image with the above coordinates being the center-point of the thumbnail? I don’t want the image to scale at all, just crop.
With GD it should work this way:
You might want to check for rounded coordinates as your image might blur if you don’t. You should check if your cropped image coordinates are well within your original image if the user lets say chooses a corner as poi.