Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support FORMAT and DPI parameters #11

Open
Gustry opened this issue Sep 3, 2019 · 1 comment
Open

Support FORMAT and DPI parameters #11

Gustry opened this issue Sep 3, 2019 · 1 comment

Comments

@Gustry
Copy link
Member

Gustry commented Sep 3, 2019

These parameters were not used in the code.

@Gustry
Copy link
Member Author

Gustry commented Nov 2, 2021

Some links :
https://github.com/qgis/QGIS/blob/master/tests/src/python/test_qgslayoutexporter.py

exporter = QgsLayoutExporter(layout)
settings = QgsLayoutExporter.ImageExportSettings()
#The idea is that here you can change setting attributes e.g.
#settings.cropToContents = True
#settings.dpi = 150

result = exporter.exportToImage(png_path, settings)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant