🇬🇧 / 🇫🇷 Need some help with WeasyPrint? You’re in the right place to ask :)
img { max-width: 100%; max-height: 250px; width: auto; height: auto;}
max-height
if you think that the second photo is too tall.
@page
block. But if you’re looking for a dynamic page size, it’s not implemented (you can take a look at Kozea/WeasyPrint#193)