<?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 Deleting the png files while still keeping images in html files? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647946#M193961</link>
    <description>&lt;P&gt;The topic was discussed before&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Tidying-up-PNG-files/td-p/492872" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Tidying-up-PNG-files/td-p/492872&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still cannot figure out how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am outputting&amp;nbsp;&lt;SPAN&gt;graphics into a html file with png files also created and saved. Is there a way to delete these png files at the end of the SAS session, or not save these png files?&amp;nbsp; I tried deleting the png files but the images in the html file are not shown any more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 00:58:13 GMT</pubDate>
    <dc:creator>wwwz</dc:creator>
    <dc:date>2020-05-15T00:58:13Z</dc:date>
    <item>
      <title>Deleting the png files while still keeping images in html files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647946#M193961</link>
      <description>&lt;P&gt;The topic was discussed before&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Tidying-up-PNG-files/td-p/492872" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Tidying-up-PNG-files/td-p/492872&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still cannot figure out how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am outputting&amp;nbsp;&lt;SPAN&gt;graphics into a html file with png files also created and saved. Is there a way to delete these png files at the end of the SAS session, or not save these png files?&amp;nbsp; I tried deleting the png files but the images in the html file are not shown any more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 00:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647946#M193961</guid>
      <dc:creator>wwwz</dc:creator>
      <dc:date>2020-05-15T00:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the png files while still keeping images in html files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647949#M193964</link>
      <description>&lt;P&gt;Did you check the generated HTML code?&amp;nbsp; Usually images in an HTML file are links to the actual files. So if the files are not accessible the HTML page cannot show the image.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.w3schools.com/tags/tag_img.asp" target="_blank"&gt;https://www.w3schools.com/tags/tag_img.asp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 01:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647949#M193964</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-15T01:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the png files while still keeping images in html files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647951#M193965</link>
      <description>&lt;P&gt;What ODS HTML statement are you using ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PATH= option tells ODS HTML where to store the html and graphics files.&amp;nbsp; Store them in the WORK folder and they will go away when the session ends and the work folder is automatically deleted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only need to look at output from the most recently submitted code you can also use graphics option RESET(1) to restart image name / numbering, overwriting image files from prior rub code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;filename workfldr "%sysfunc(pathname(WORK))";

ods html path=workfldr file='gfx.html' style=plateau;

ods graphics / reset=index(1);

proc sgplot data=sashelp.class;
  by name notsorted;
  scatter x=age y=height;
run;

ods html close;

%put NOTE: png are in folder %sysfunc(pathname(WORKFLDR));
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 01:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647951#M193965</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-05-15T01:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the png files while still keeping images in html files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647954#M193968</link>
      <description>&lt;P&gt;I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html file="xxx.html" path="foldername" gpath="foldername"; So both html and png are saved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I tried storing png file in work folder, but when I close SAS, then the images in the html file is not shown.&lt;/P&gt;&lt;P&gt;Looks like I have to save those png files.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 01:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647954#M193968</guid>
      <dc:creator>wwwz</dc:creator>
      <dc:date>2020-05-15T01:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the png files while still keeping images in html files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647956#M193970</link>
      <description>&lt;P&gt;HTML files do not contain images (unless you use some trickery like base64). They only contain an anchor (a link) to the image file. So deleting the files prevents them from being displayed when opening the HTML file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need a one-file solution, PDF might be a better format.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 02:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647956#M193970</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-15T02:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the png files while still keeping images in html files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647997#M193998</link>
      <description>&lt;P&gt;thank all.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 11:43:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-the-png-files-while-still-keeping-images-in-html-files/m-p/647997#M193998</guid>
      <dc:creator>wwwz</dc:creator>
      <dc:date>2020-05-15T11:43:04Z</dc:date>
    </item>
  </channel>
</rss>

