I've recently got into doing a lot more with GD. What I am now trying to do is to resize images to thumbnails, retain their original aspect ratios but ensure they fit within the same area each time. To do this, it doesn't matter if some clipping occurs on the edges of the original images to create the thumbs so effectively the whole image is sampled using an area of a standard 4:3 aspect ration and then it is scaled down to a smaller size without distortion.
It sounds like it could work, but I have no idea how to sample an area of a larger image.
Any ideas?
Thank you in advance.
It sounds like it could work, but I have no idea how to sample an area of a larger image.
Any ideas?
Thank you in advance.