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

Maps Printer does not respect the resolution set in the Print Layout #15

Closed
peterbishop88 opened this issue Jun 7, 2019 · 8 comments · Fixed by #25
Closed

Maps Printer does not respect the resolution set in the Print Layout #15

peterbishop88 opened this issue Jun 7, 2019 · 8 comments · Fixed by #25

Comments

@peterbishop88
Copy link

It looks like if I set a lower Export Resolution (250DPI under Export Settings > Export Resolution) for the PDF in the Print Layout (to reduce file size), it still exporting a higher res version (Print as Raster = TRUE).

For example, when I use Maps Printer, the file generated is 241MB. When I export manually from the Print Composer (Layout > Export PDF), the resulting file is 14MB.

@peterbishop88
Copy link
Author

Does anyone have any advice on this? Or does anybody have a workaround? Thanks!

@DelazJ
Copy link
Owner

DelazJ commented Jun 21, 2019

Hi @peterbishop88
Sorry for the late reply. I just made a quick try on a print layout and I can not reproduce the issue; I get the same size as if exported from print layout dialogs (tested with 300, 250 and 150 dpi). The size changed in the three cases and coherent with direct output.
Also tried with unchecking the "print as raster" and got same size.
I'd need more input. Any project file you can share with me at delazj at gmail dot com?

@DelazJ
Copy link
Owner

DelazJ commented Jun 21, 2019

Ah... Are you using some effects on your composition or data?

@peterbishop88
Copy link
Author

Hello! No, I'm not using any effects. I've attached a step-by-step to reproduce, as well as some example files. Let me know if you have any questions! Thanks so much for looking into this.

To summarize my issue - I expect the file size from the Maps Printer plugin to match the file size when I do Export to PDF in the Layout Manager. Is this the intended behavior?

QGIS Bug Report.zip
Map Printer step by step file size.docx

@peterbishop88
Copy link
Author

Hi @DelazJ , I was wondering if you had any luck at reproducing my issue (or the time to do it!) with the steps in the Word Doc above? Let me know if you need any additional information on my end. Thanks!
PS I love this plugin and I use it every day at work.

@DelazJ
Copy link
Owner

DelazJ commented Aug 14, 2019

Hi @peterbishop88
Yes I did test and reproduced your issue. Happened that I did not properly get the GUI settings such as the raster tick box. Would you mind giving a shot to https://github.com/DelazJ/MapsPrinter/blob/fixrasterizeexport/maps_printer.py (replace the file in your plugin folder with that one)? The file should be accessible through QGIS Settings -> User Profiles -> Open Active Profile Folder then python/plugins/MapsPrinter folder.
You'd "need" to reload QGIS

@peterbishop88
Copy link
Author

Hi @DelazJ !

Amazing!! Thank you SO much. I really appreciate it. Your update works great.

I love this plugin. My composers take a long time to load, so your plugin lets me export them without having to wait for them to load.

Peter

@DelazJ
Copy link
Owner

DelazJ commented Aug 17, 2019

Amazing!! Thank you SO much. I really appreciate it. Your update works great.

Glad it did it. I will need to check other formats behavior and will release a new version.

I love this plugin. My composers take a long time to load, so your plugin lets me export them without having to wait for them to load.

Thanks. This originally is the reason why I wrote this plugin. And happy that's still useful.

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

Successfully merging a pull request may close this issue.

2 participants