Function getJpgCompressionOptions

  • The function returns progressive compression settings for JPEG images, or undefined for other image formats.

    Parameters

    • progressive: undefined | boolean

      A boolean value that indicates whether the JPEG compression should be progressive or not. If it is undefined, the default value of true will be used.

    Returns boolean

    either the value of progressive if the format parameter is .jpg or .jpeg, or undefined if it is not. If progressive is not provided, it defaults to true.