Exporting images for TXT and HTML templates returns absolute paths, e.g., file:/C:/Users/username/Desktop/output/out_files/_18_5_1_133803de_1519700709957_140433_4668.jpg. There are five functions for handling paths of exported images as follows.


$image.createSilentImage(image)
Create an image without returning a path.

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element icon.
Return-com.nomagic.magicreport.ImageAn exported image.


$image.createImageWithRelativePath(image)
Create an image and return a relative path.

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element icon.
Return-com.nomagic.magicreport.ImageAn exported image.
 -java.lang.StringA relative path of the exported image.


$image.getRelativePath(image)
Return a relative path only.

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element icon.
Return-java.lang.StringA relative path of the exported image.


$image.createImageWithAbsolutePath(image)
Create an image and return an absolute path.

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element icon.
Return-com.nomagic.magicreport.ImageAn exported image.
 -java.lang.StringAn absolute path of the exported image.


$image.getAbsolutePath(image)
Return an absolute path only.

 NameTypeDescription
Parameter(s)imagecom.nomagic.magicreport.ImageAn image object for the element icon.
Return-java.lang.StringAn absolute path of the exported image.