Re: [Qgis-user] How to control image exporter size (with QSize)

2024-02-25 Thread Andrea Giudiceandrea via QGIS-User
afernandez afernandez at odyhpc.com Sun Feb 25 07:48:51 PST 2024 I'm using the image exporter to create PNG files. Everything looks good but the files must have a resolution of 1,200 pixels in the horizontal direction. The created file has a resolution of 3507 by 2480 pixels (not sure where

[Qgis-user] How to control image exporter size (with QSize)

2024-02-25 Thread afernandez via QGIS-User
Hello, I'm using the image exporter to create PNG files. Everything looks good but the files must have a resolution of 1,200 pixels in the horizontal direction. The snippet to create the image file reads: exporter = QgsLayoutExporter(layout) png_name = '/home/ubuntu/output/testing.png' exporter.ex