When setting the Page properties in the Print Layout I expected that these properties are predefined when exporting this Layout as image. But either this seems not to be the case or I am missing something.
In my example I set the Page Properties to page height and page width each 100 mm. In the Layout variables this is shown as layout_pageheight = 100 and layout_pagewidth = 100. Also I set the dpi (dots per inch) to 300.
My assumption was that these seetings are used as predefined values to calculate the page size when exporting the map as an image. This would be a page height and width of 7620 (10 cm * 2.54 cm/inch * 300 dpi). Instead the preset value is 1181 px.
Is this an error, not implemented or is my calculation/assumption not valid?

cmbyin/cm, notcm/in