[Qgis-user] Layout export to image not cropping when draw coordinates outside map frame enabled.

Michael Dufty MDufty at mbsenvironmental.com.au
Wed Mar 22 08:54:39 PDT 2023


Just checked and someone else has reported it as a bug a year ago.  Print layout: crop to content produces incorrect cropping when grid coordinates labels are present #47250
https://github.com/qgis/QGIS/issues/47250


From: QGIS-User <qgis-user-bounces at lists.osgeo.org> On Behalf Of Michael Dufty via QGIS-User
Sent: Wednesday, 22 March 2023 11:42 PM
To: qgis-user at lists.osgeo.org
Subject: [Qgis-user] Layout export to image not cropping when draw coordinates outside map frame enabled.

I'm having an issue exporting layouts to image.  Wondering if anyone else has found a solution.
Not sure if it is a bug or a feature.

If I have grid coordinate labels around the outside of a map frame (draw coordinates), I find when I export as image with crop to content checked and 0 margins, I end up with a large margin of about 70 pixels around the export, wherever the map frame is near the edge.
In the past I've used a work around, setting the text as inside the map frame, but with a negative offset so it appears outside.
Since the latest update 3.28.4/3.30 this no longer works, the export is still cropped correctly, but the labels vanish (visible in layout preview but not in the image export).

Anyone have any ideas or should it be a bug report?  Looks like the extra margin may is about what would be required if the coordinates labels were perpendicular to the frame instead of parallel.

Michael Dufty

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230322/4b90f16a/attachment.htm>


More information about the QGIS-User mailing list