<?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 Re: Rescale pictures inserted in PROC REPORT columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rescale-pictures-inserted-in-PROC-REPORT-columns/m-p/963647#M375389</link>
    <description>&lt;P&gt;Or you can refit this graph when you are creating "SGPlot1.png". like:&lt;/P&gt;
&lt;PRE&gt;ods graphics/&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;width=500px height=300px&lt;/STRONG&gt;&lt;/FONT&gt; image_name="SGPlot" outputfmt=png;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Apr 2025 01:58:26 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-04-08T01:58:26Z</dc:date>
    <item>
      <title>Rescale pictures inserted in PROC REPORT columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rescale-pictures-inserted-in-PROC-REPORT-columns/m-p/963603#M375380</link>
      <description>&lt;P&gt;I am trying to insert pictures within a PROC REPORT.&amp;nbsp; I believe I understand the basic mechanics, but would like the picture to shrink to fit if the cellwidth is not as wide as the picture.&amp;nbsp; Is this something that can be done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc report data=dsn nowd;
    column image;
    define image / "TITLE" computed style(column)=[cellwidth=4in];

    compute image / char;
        call define(_col_,'style',"style=[preimage='/path/SGPlot1.png']");
    endcomp;
run;&lt;/PRE&gt;&lt;P&gt;The code above is what I used to produce the PROC REPORT to insert a single image.&amp;nbsp; It cuts off the right-hand side of the image because the image is just a little bit wider than the 4in cellwidth I declared.&amp;nbsp; I would like it to instead shrink the image.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 15:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rescale-pictures-inserted-in-PROC-REPORT-columns/m-p/963603#M375380</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2025-04-07T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rescale pictures inserted in PROC REPORT columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rescale-pictures-inserted-in-PROC-REPORT-columns/m-p/963611#M375385</link>
      <description>Hi, My experience using images with PROC REPORT and inserting the image into a cell is that the image does not "autosize" -- so I generally had to use a paint program to get the image to the approximate size I needed before I inserted it into the output. It may also make a difference whether your ODS output destination is HTML, RTF, PDF, etc.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 07 Apr 2025 17:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rescale-pictures-inserted-in-PROC-REPORT-columns/m-p/963611#M375385</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2025-04-07T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rescale pictures inserted in PROC REPORT columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rescale-pictures-inserted-in-PROC-REPORT-columns/m-p/963647#M375389</link>
      <description>&lt;P&gt;Or you can refit this graph when you are creating "SGPlot1.png". like:&lt;/P&gt;
&lt;PRE&gt;ods graphics/&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;width=500px height=300px&lt;/STRONG&gt;&lt;/FONT&gt; image_name="SGPlot" outputfmt=png;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Apr 2025 01:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rescale-pictures-inserted-in-PROC-REPORT-columns/m-p/963647#M375389</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-08T01:58:26Z</dc:date>
    </item>
  </channel>
</rss>

