1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Can I set the DPI when exporting to TIFF?

Posted by Dillone on Feb 07, 2009

I got a problem about exporting images with shadow to PDF, so I decide to export to high DPI, like 300dpif, TIFF file.

But where can I or use what command to set the DPI value when exporting to TIFF?


 
Posted by Tom De Smedt on Feb 13, 2009

Exported images are always 72dpi. So if you want 300dpi; you need to work on a canvas that is roughly 4x (300/72) bigger and then scale down the exported image.

A trick you could use at the beginning of the script:

dpi = 300
scale(dpi/72.0, dpi/72.0)