Magic Report provides three levels to set DPI for images in generated reports as follows:

  1. Global level
    By adding the template.output.image.dpi variable in the Report Environment options, this DPI setting takes effect in images in any reports generated from any templates.

  2. Template level
    The ImageDPI variable supported in Report Data of a template can be added so that the defined DPI value takes effect in images in reports generated from this template.

    The template level setting has a higher priority than the global level setting.


  3. Object level
    Supporting $report.getImageFor($element, $dpi), this DPI setting takes effect in some images in a template whereas:

    The object level setting has the highest priority. The DPI from this level setting overrides the global and template level settings and takes effect in specified images.