BookmarkSubscribeRSS Feed
Kastchei
Pyrite | Level 9

Howdy!

 

I have to create a 1200 DPI TIFF graph for a colleague for a journal submission.  The graph is very simple, but the file size is huge (> 100 MB).  When I view the properties of the TIFF, it is indeed 1200 DPI.  It is also uncompressed.  Is there a way for SAS to produce a compressed TIFF file?  That might make the file size more manageable. 

 

I can zip it up really well, so no worries if there's not a way.

 

ods html close;
ods listing style = axis_wall image_DPI = 1200;
ods graphics / reset width = 6.5in height = 4in scale = off noBorder outputFMT = TIFF;
%let xAxis = grid /*type = log*/                   label = "Relative Risk with 95% Confidence Limits" labelAttrs = (family = "Calibri" size = 11pt)  values = (/*0.4 0.5 0.6 */0.7 to 1.8 by 0.1/* 2.5*/) valueAttrs = (family = "Calibri" size = 11pt)  min = 0.4 max = 2.5 offsetMin = 0.03 offsetMax = 0.03;
proc sGPlot data = a dAttrMap = GraphAttrMap;
    refline 1 / axis = x;
    scatter y = group x = PE / xErrorLower = LL xErrorUpper = UL group = noise attrId = Noise errorBarAttrs = (pattern = longDash thickness = 2);

    xAxis grid /*type = log*/               label = "Relative Risk with 95% Confidence Limits" labelAttrs = (family = "Calibri" size = 11pt)  values = (/*0.4 0.5 0.6 */0.7 to 1.8 by 0.1/* 2.5*/) valueAttrs = (family = "Calibri" size = 11pt)  min = 0.4 max = 2.5 offsetMin = 0.03 offsetMax = 0.03;
    yAxis grid discreteOrder = data reverse display = (noLabel)                                labelAttrs = (family = "Calibri" size = 11pt)                                                       valueAttrs = (family = "Calibri" size = 11pt)                      offsetMin = 0.1  offsetMax = 0.1 ;
    keyLegend / titleAttrs = (family = "Calibri" size = 11pt)  valueAttrs = (family = "Calibri" size = 11pt);
run;

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

From the documentation: about Universal Printing:

SAS supports TIFF 6.0 for RGBA and CMYK colors.

When SAS creates a TIFF image, the image is compressed.

If the NOUPRINTCOMPRESSION is set, the size of a TIFF image file that SAS creates is extremely large.

Have you tried that syntax and that option?

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 764 views
  • 0 likes
  • 2 in conversation