Vizard 7 » Command Index » Vizard modules » viz » <viz:res>.addPublishImageLoaders
7.6

<viz:res>.addPublishImageLoaders

Add all common image loader plugins to the publish dependency list

<viz:res>.addPublishImageLoaders()  

Remarks

This command manually adds all common image loader plugins to the publish dependency list. The following image formats are included:

Format

bmp

gif

jpeg

png

tga

tif

dds

webp


This is equivalent to the following code:
for ext in ('bmp','gif','jpeg','png','tga','tif','dds','webp'):
    viz.res.addPublishFileLoader(ext)

Vizard will automatically detect all image loader plugins that are used during the publish process. However, if your script dynamically loads certain images, then the image loader plugin might not be included in your published executable.

In this case, you can use this command to tell Vizard that your script should support loading the specified image type within published executables.

Return Value

None

Example

# Support loading all common image types 
viz.res.addPublishImageLoaders()

See also

<viz:res>.addPublishDirectory
<viz:res>.addPublishFile
<viz:res>.addPublishFileLoader
<viz:res>.addPublishFilter
<viz:res>.getPublishedPath