Is there a way to scale images to a given height value without breaking the aspect ratio while adding them with addImage() or otherwise? Something like saying
$image->addImage([
'src' => 'path/to/image.png',
'height' => 500,
'width' => 'auto'
]);
So that all the different images i'm adding would have same height and different width in correspondace with the aspect ratio.
Thank you in advance for your answer.