[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:42:07 PDT 2023


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/9671e71a/attachment.htm>


More information about the QGIS-User mailing list