static async encode(context, width, height, quality = 50, speed = 8) {
        const imageData = context.getImageData(0, 0, width, height).data;
        const bytes = new Uint8Array(imageData);
        const result = await avif(bytes, width, height, quality, speed);
        return new Blob([result], { type: Mimes.avif });
    }
Encode avif image with canvas context
@param context
@param width
@param height
@param quality
@param speed
@returns