<div dir="ltr"><div>Hi all,</div><div><br></div><div>I have a layout on which I checked the "save world file" option in Layout --> Exports settings</div>When I export this layout to image, I'd expect it to generate a world file next to it considering that the generateWorldFile is an attribute of the <em>ImageExportSettings</em> class [0]. But no world file. I use this kind of code<div><br></div><div>mylayout=QgsProject.instance().layoutManager().layoutByName('Composeur 1')<br></div><div>exporter = QgsLayoutExporter(mylayout)</div><div>exporter.exportToImage(filePath, QgsLayoutExporter.ImageExportSettings)</div><div><br></div>and then I check the image export settings with the next code<br><div><div><div> <div><br></div>ls=QgsProject.instance().layoutManager().layouts()<div>for elt in ls:</div>  exporter = QgsLayoutExporter(elt)<div>  imgSettings = exporter.ImageExportSettings()</div><div>  print(<a href="http://elt.name">elt.name</a>(), imgSettings.generateWorldFile)</div><div><br></div><div>which returns False for any layout, including the one I checked the option for. Btw, dpi returns -1.0, pages return an empty list... I guess I might have missed something but...No idea.<br></div><div>When is the generateWorldFile set to True (if ever it's what will trigger my world file export)?<br></div><div><br></div>[0] <a href="https://qgis.org/pyqgis/master/core/Layout/QgsLayoutExporter.html#qgis.core.QgsLayoutExporter.ImageExportSettings">https://qgis.org/pyqgis/master/core/Layout/QgsLayoutExporter.html#qgis.core.QgsLayoutExporter.ImageExportSettings</a><br></div><div><div><div><div><div><br></div><div>Thanks for your help,</div><div>Harrissou<br></div></div></div></div></div></div></div></div>