Use Timber/Twig to pull an image by image ID [closed]

{{ post.thumbnail.ID }} will get you the image ID, but to answer what you’re after….

<img src="https://wordpress.stackexchange.com/questions/228726/{{ post.thumbnail.src("medium_16x9') | default( Image(1234).src('medium_16x9') ) }}">

Reference

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)