[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-user
Subject:    Re: [Qgis-user] Layout export to image not cropping when draw coordinates outside map frame enabled.
From:       Michael Dufty via QGIS-User <qgis-user () lists ! osgeo ! org>
Date:       2023-03-22 15:54:39
Message-ID: SY6PR01MB7509D756CC347E4CF7CD7B149C869 () SY6PR01MB7509 ! ausprd01 ! prod ! outlook ! com
[Download RAW message or body]

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


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

I'm having an issue exporting layouts to image.  Wondering if anyone else h=
as 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 co=
ordinates), 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 expor=
t, wherever the map frame is near the edge.
In the past I've used a work around, setting the text as inside the map fra=
me, 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 sti=
ll 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 m=
argin may is about what would be required if the coordinates labels were pe=
rpendicular to the frame instead of parallel.

Michael Dufty


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Just checked and someone else has reported it as a bug a year \
ago. &nbsp;Print layout: crop to content produces incorrect cropping when grid \
coordinates labels are present #47250 <o:p></o:p></p>
<p class="MsoNormal"><a \
href="https://github.com/qgis/QGIS/issues/47250">https://github.com/qgis/QGIS/issues/47250</a><o:p></o:p></p>
 <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" \
style="mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" \
style="mso-fareast-language:EN-AU"> QGIS-User \
&lt;qgis-user-bounces@lists.osgeo.org&gt; <b>On Behalf Of </b>Michael Dufty via \
QGIS-User<br> <b>Sent:</b> Wednesday, 22 March 2023 11:42 PM<br>
<b>To:</b> qgis-user@lists.osgeo.org<br>
<b>Subject:</b> [Qgis-user] Layout export to image not cropping when draw coordinates \
outside map frame enabled.<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I&#8217;m having an issue exporting layouts to image.&nbsp; \
Wondering if anyone else has found a solution.<o:p></o:p></p> <p \
class="MsoNormal">Not sure if it is a bug or a feature.<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal">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.<o:p></o:p></p> <p class="MsoNormal">In the past I&#8217;ve used a work around, \
setting the text as inside the map frame, but with a negative offset so it appears \
outside.<o:p></o:p></p> <p class="MsoNormal">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).<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal">Anyone have any ideas or \
should it be a bug report?&nbsp; Looks like the extra margin may is about what would \
be required if the coordinates labels were perpendicular to the frame instead of \
parallel.<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Michael Dufty<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>



_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

--===============0381311322794532660==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic