SaveAsWebPFile

SaveAsWebPFile ( fileName ;​ fileFlag ;​ creatorType ;​ quality ;​ resolution )

Argument Type Range Default Note
fileName str 1..1000 (required) Max. 1000 chars.
fileFlag int 1..2 replace
creatorType str 4..4 "????" Ignored
quality num 0..1 0.8
resolution num 0.25..4 1
Examples

SaveAsWebPFile("Chart.webp";​replace)

SaveAsWebPFile("Graphs/Graph_A.webp")

SaveAsWebPFile("~/Plots/Plot_01.webp";​replace;​;​0.5)

SaveAsWebPFile("~/Desktop/Plots/Plot_01.webp";​replace;​;​1.0;​2.5)

SaveAsWebPFile("/Volumes/Macintosh HD/Plots/Plot_01.webp")

SaveAsWebPFile("/C:/Users/Public/Documents/Plot_01.webp")

Description

The SaveAsWebPFile() function is set up exactly the same as the SaveAsPNGFile() function. In addition, by using the 4th argument quality, the image quality of the WebP file can be controlled by a value between 0 (low quality) and 1 (lossless quality). High image quality means larger files as a result of lower compression and vice-versa, low image quality leads to smaller files with higher compression of image information. Unless otherwise defined, the WebP file created is saved with quality = 0.8.

Scroll to Top