I have a photo gallery where the cover photo has images of 290px set width and the height can be anything. I'm going for a Pinterest type of effect. I'm trying to do this using PHP and Imagick, but cannot seem to figure it out. Can someone assist?
Here is the function that I have so far, but just getting small images. I read somewhere that setting the height to a number higher makes it auto but to no avail.
function thumbnailImage($imagePath,$real_target_pathThumb) {
$imagick = new Imagick($imagePath);
$imagick->thumbnailImage(290, 9999, true, true);
$imagick->writeImage($real_target_pathThumb);
};