PDF save dialog - Add an option to choose image quality (without setting all images with "style=image-rendering:optimizeQuality/optimizeSpeed")
Context
When importing images in a SVG document one might not take care of the "Image rendering mode" option or choose "Speed" instead of "Quality" in order to avoid lags, which is fine. But whenever you are exporting as a PDF, the exact same setting is used which makes it hard to have the highest quality (for printing for instance) whithout either change quality of ALL images before saving or work always with high quality.
Enhancement
In the "Portable Document File" save as dialog it would be fine to be able to set the Image rendering mode when exporting:
- Use the current seting of each image (by default)
- Use fast rendering for all images
- Use highest quality for all images
Other comment
The quality level used when exporting seems to be specifyed in function bool CairoRenderContext::renderImage(Inkscape::Pixbuf *pb, Geom::Affine const &image_transform, SPStyle const *style)
of https://git.launchpad.net/inkscape/tree/src/extension/internal/cairo-render-context.cpp
At a first glance I suggest to add an attribute in class CairoRenderContext
which would say wether to use current implementation (i.e. prefer image attribute, first option), Fast rendering (option 2) or High quality (option 3). This attribute would be set when creating the context.
If the proposed solution is ok, I can propose a commit for review.
Inkscape Version and Operating System:
- Inkscape Version: Master
- Operating System: Windows
- Operating System version: Windows 10