Layout
CSS Flexbox, Grid, the box model, and automatic width and height
imgrender supports CSS Flexbox and Grid layouts.
Box model
In imgrender, every element follows the standard CSS box model. An element's total size is calculated from its content, padding, border, and margin.
Automatic width and height
imgrender can size the image to its content. You can also set the template width and height in the template editor, or override them with request parameters when calling the Generate image from template API, to constrain the width and height of the generated image.
Image dimensions
By default, an image is rendered at its original size. Set width and height to choose the rendered size.
<img src="https://www.imgrender.com/example.png" width="1200" height="600">