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

Layout export quality jpg #59171

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

YoannQDQ
Copy link
Contributor

Description

Add a quality parameter in QgsLayoutExporter::ImageExportSettings.

For jpeg and jpg, the layout image export dialog now displays an additional line (hidden for other extensions)

image_quality

@github-actions github-actions bot added this to the 3.40.0 milestone Oct 22, 2024
@YoannQDQ
Copy link
Contributor Author

Not sure how to handle the spell check fail, as exportLayersAsSeperateFiles is part of the public API (and I didn't modify it in this PR)

Copy link

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 4345210)

@YoannQDQ YoannQDQ added Feature Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Frozen Feature freeze - Do not merge! labels Oct 22, 2024
@@ -231,6 +235,14 @@ class CORE_EXPORT QgsLayoutExporter
*/
QVector<qreal> predefinedMapScales;


/**
* Image quality, typically used for JPEG compression (whose quality ranges from 0 to 100)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure which formats would accept 0. For JPEG the minimum is 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Frozen Feature freeze - Do not merge! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jpg quality slider in Composer
2 participants