Function compress_image

  • Parameters

    • dataUrl: string
    • scale: number = 0.8
    • quality: number = 0.8

    Returns Promise<string>