Using the example data
set SASHELP.CLASS and the SGPLOT procedure, the following ODS PRINTER
statement prints the GIF image sasprt.gif in the current directory:
options printerpath=gif papersize=("4in" "4in") nodate;
ods html close;
ods printer;
proc sgplot data=sashelp.class;
reg x=height y=weight / CLM CLI;
run;
ods printer close;
ods html;
Here is the GIF image
in the Windows Picture and Fax Viewer: