I forgot a very important aspect of implementing webP in LiveCode engine.
For a first implementation, LiveCode could import (decode) only static -not
animated- webP images and exclude the option of exporting images as webP
(excluding the encoder from the engine). This would reduce the complexity
of this task.
Now, I have to check if these optimized JPG and PNG encoders produce better
results with my own test images: