So I want to take a square image and resize it to 300px * 400px (for example).
I want to maintain the aspect ratio, but so that the picture exceeds or matches both dimensions. So in the case of a square original image the resulting image will be 400px * 400px.
Does that make sense? I want this because then I will go on to crop the image to be exactly 300px * 400px.
Setting $config['maintain_ratio'] = false; distorts the image.
Thank you for any enlightenment.
Try this …. It will help ..