Function defaultCompressionOptions

  • The function takes in an array of image formats and returns an object with the default compression settings

    Parameters

    • Optional imageFormats: string[]

      an array of image formats

    Returns CompressionOptionsMap