Function ImageOptimizerPrompt

  • Orchestrates the image optimization process, guiding the user through various settings and options. It handles:

    • file selection,
    • format conversion,
    • resizing,
    • watermarking, and
    • quality adjustments.

    Parameters

    • filepath: string

      The path to the directory containing the images to be optimized.

    • Optionalfilename: string = ''

      An optional filename to further specify the target directory.

    Returns Promise<void>

    • Resolves when the optimization process is complete.