<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to improve PNG picture resolution by jsl in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766619#M94668</link>
    <description>&lt;P&gt;Hi,JMPer&lt;/P&gt;&lt;P&gt;I'm using Mac version, and want to save some boxplot charts to PNG by jsl.&lt;/P&gt;&lt;P&gt;How to improve the PNG picture resolution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used below jsl and change resolution number, it sames not take effective.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;graph1 &amp;lt;&amp;lt;Save Picture("/Users/Downloads/TEST"||"/TEST-"||text||".png","png",resolution(600));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The resolution is not good as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CompleteLeopard_0-1718694893216.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65312iA315AACEFE15A632/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CompleteLeopard_0-1718694893216.png" alt="CompleteLeopard_0-1718694893216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 07:16:15 GMT</pubDate>
    <dc:creator>CompleteLeopard</dc:creator>
    <dc:date>2024-06-18T07:16:15Z</dc:date>
    <item>
      <title>How to improve PNG picture resolution by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766619#M94668</link>
      <description>&lt;P&gt;Hi,JMPer&lt;/P&gt;&lt;P&gt;I'm using Mac version, and want to save some boxplot charts to PNG by jsl.&lt;/P&gt;&lt;P&gt;How to improve the PNG picture resolution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used below jsl and change resolution number, it sames not take effective.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;graph1 &amp;lt;&amp;lt;Save Picture("/Users/Downloads/TEST"||"/TEST-"||text||".png","png",resolution(600));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The resolution is not good as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CompleteLeopard_0-1718694893216.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65312iA315AACEFE15A632/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CompleteLeopard_0-1718694893216.png" alt="CompleteLeopard_0-1718694893216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 07:16:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766619#M94668</guid>
      <dc:creator>CompleteLeopard</dc:creator>
      <dc:date>2024-06-18T07:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve PNG picture resolution by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766690#M94672</link>
      <description>&lt;P&gt;For windows you could change the Save Image DPI preference value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
//Caution: Changing a preference will 
//affect the default behavior of JMP. 

Preferences[1] &amp;lt;&amp;lt; Set(Save Image DPI(300));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but that seems to be Windows specific command. Not sure if the only option on mac would be to increase the image size before saving (it might help).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/windows-preferences.shtml?os=win&amp;amp;source=application#ww1052618" target="_blank" rel="noopener"&gt;Resolution (DPI) for PNG and JPEG Images (windows specific preference)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/set-the-graphic-dpi-for-exported-graphics.shtml#ww264557" target="_blank" rel="noopener"&gt; Using JMP &amp;gt; Save and Share Your Data &amp;gt; Save Reports &amp;gt; Set the Graphic DPI for Exported Graphics&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 09:48:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766690#M94672</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-18T09:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve PNG picture resolution by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766748#M94674</link>
      <description>&lt;P&gt;Try saving as SVG (scalable vector graphics) if that format will work with destination for the graphs. SVG is not 100% standard across browsers but may be what you want.&lt;/P&gt;
&lt;P&gt;Or, try something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$sample_data/big class.jmp" );
bv = Bivariate(
	Y( :weight ),
	X( :height ),
	Fit Line( {Line Color( {61, 174, 70} ), Line Width( 10 )} ),
	SendToReport(
		Dispatch( {}, "height", ScaleBox, {Label Row( Set Font Size( 72 ) )} ),
		Dispatch( {}, "weight", ScaleBox, {Label Row( Set Font Size( 72 ) )} ),
		Dispatch( {}, "weight", TextEditBox, {Set Font Size( 72 )} ),
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Frame Size( 2000, 2000 ), Marker Size( 30 ), Marker Drawing Mode( "Normal" ), DispatchSeg(
				Line Seg( 1 ),
				{Line Color( {61, 174, 70} ), Line Width( 10 )}
			)}
		),
		Dispatch( {}, "height", TextEditBox, {Set Font Size( 72 )} ),
		Dispatch( {}, "Linear Fit", OutlineBox, {Close( 1 )} )
	)
);


Report( bv )[List Box( 1 )] &amp;lt;&amp;lt; savepicture( "$desktop/biggraph.png" );

img = New Image( "$desktop/biggraph.png" );
img &amp;lt;&amp;lt; scale( .25 );
New Window( "scaled to 1/4 size", img );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Really big in the background, scaled down inset." style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65356i597018CF3F498EBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="Really big in the background, scaled down inset." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Really big in the background, scaled down inset.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what to do about the light-weight frame, you might be able to use the ref lines to fix it up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 11:38:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766748#M94674</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-06-18T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve PNG picture resolution by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766897#M94698</link>
      <description>&lt;P&gt;Craige's suggestion of SVG is good. If this is Mac-specific, I would also recommend trying PDF, which is the standard Mac vector format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
r = dt &amp;lt;&amp;lt; Oneway(
	Y( :height ),
	X( :age ),
	Quantiles( 1 ),
	Box Plots( 1 ),
	SendToReport( Dispatch( {}, "Quantiles", OutlineBox, {Close( 1 )} ) )
);

r &amp;lt;&amp;lt; Save Picture( "$DESKTOP/Test.pdf", "PDF" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This produces the attached Test.pdf file.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 20:09:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-improve-PNG-picture-resolution-by-jsl/m-p/766897#M94698</guid>
      <dc:creator>hecht_jmp</dc:creator>
      <dc:date>2024-06-18T20:09:22Z</dc:date>
    </item>
  </channel>
</rss>

