OptionalforceForce format output, otherwise attempt to use input format (optional, default true)
OptionalprogressiveUse progressive (interlace) scan (optional, default false)
Optionalcompressionzlib compression level, 0-9 (optional, default 6)
OptionaladaptiveUse adaptive row filtering (optional, default false)
OptionalqualityUse the lowest number of colours needed to achieve given quality (optional, default 100)
OptionaleffortLevel of CPU effort to reduce file size, between 1 (fastest) and 10 (slowest), sets palette to true (optional, default 7)
OptionalpaletteQuantize to a palette-based image with alpha transparency support (optional, default false)
OptionalcoloursMaximum number of palette entries (optional, default 256)
OptionalcolorsAlternative Spelling of "colours". Maximum number of palette entries (optional, default 256)
OptionalditherLevel of Floyd-Steinberg error diffusion (optional, default 1.0)
Image compression options to use when rendering icon images for final output to Touch Portal.
Default
compressionLevelandqualityare set in plugin settings and can be overridden in an icon's "finalize" action.compressionLevelof0disables compression step entirely (sharplib is never invoked,skia-canvasPNG-24 output is used directly). Otherwise these are passed tosharp.png()for final compression of theskia-canvasoutput. Defaulteffortis set to1andpalettetotrue.