For height and width you have two options. Setting it in your HTML or using the API to crop your images on the fly.
IT145 HTML and CSS - Week 8
Set width to auto in HTML and CSS
Automatically adjust the size, Bird watch website 2.0
How to resize an image in HTML?
How to change image size in CSS - javatpoint
How to set parent div width as a percentage of the screen size
How to resize an image in HTML?
Image height and width attributes in HTML
Serve images with correct dimensions, Articles
html - CSS image size not render correctly - Stack Overflow
Setting height and width - HTML/CSS to Image
HTML width/height Attribute vs CSS width/height Property
css - HTML Image Width And Height Attributes - Stack Overflow
Change Button Font Size with JavaScript or CSS: 2 Easy Ways!
How To Adjust the Content, Padding, Border, and Margins of an HTML