Frequently Asked Questions

What is Minomax?

Minomax is a tool designed to optimize web projects by compressing images, videos, and web documents, as well as generating image sets for different devices. It simplifies the optimization process with minimal configuration.

How do I use the prod command in Minomax CLI?

The prod command runs the Minomax optimization process for images and videos. You can specify options like image format (jpg, avif, webp), video codec (wav1, mav1, mx265), and video encoding levels (1 to 3) to tailor the optimization.


Example:

minomax prod —format webp —codec mav1 —encode 2 —ignore “node_modules”

How can I compress images with Minomax CLI?

Use the image command to compress images. Specify path patterns to locate the image files, set the output format, and choose the destination path for optimized images.


Example:

minomax image —patterns “src/images/**/*.jpg” —format webp —dest ”./optimized_images”

What video codecs are supported by Minomax CLI?

Minomax CLI supports three video codecs: wav1, mav1, and mx265. You can specify the desired codec using the —codec option when using the video command.

How do I compress videos using Minomax CLI?

The video command allows you to compress video files. You can choose a codec, set the encoding level, and define the destination for compressed videos.


Example:

minomax video —patterns “src/videos/**/*.mp4” —codec mav1 —encode 2 —dest ”./optimized_videos”

What is the purpose of the minify command?

The minify command is used to minify web documents such as HTML, JS, and CSS files. It reduces the file size by removing unnecessary characters without changing the functionality of the code, leading to improved page load speeds.


Example:

minomax minify —patterns “src/**/*.html” —dest ”./dist” —ignore “node_modules”

Can I exclude specific files or directories from processing in Minomax CLI?

Yes, you can use the —ignore option followed by path patterns to exclude specific files or directories from processing.


Example:
minomax prod —ignore “node_modules, dist”

How do I generate responsive image sets with Minomax CLI?

Use the genset command to generate image sets for responsive design. This will create multiple image sizes for different screen resolutions.


Example:

minomax genset —patterns “src/images/**/*.jpg” —dest ”./responsive_images”

What does the init command do in Minomax CLI?

The init command initializes a configuration template for Minomax. It sets up the necessary configuration files and prepares the project for optimization.


Example:
minomax init

Can I configure Minomax CLI to optimize only certain file types?

Yes, you can use the —patterns option to specify the types of files (e.g., images, videos, web documents) you want to process. For example, using “*.jpg” to compress only JPEG images.

What happens if I don’t specify a destination path (--dest)?

If you don’t specify a destination path, Minomax will use the default destination defined in the configuration file.

What is the difference between the prod and image commands?

The prod command optimizes both images and videos together, while the image command focuses solely on compressing images. The prod command is a comprehensive optimization option for both types of media.

Can I run Minomax CLI on any operating system?

Yes, Minomax CLI is built with cross-platform compatibility. It should work on Linux, macOS, and Windows, as long as Node.js is installed.

How do I get help for a specific Minomax CLI command?

You can run minomax <command> —help to get detailed information about any command and its available options.


Example:
minomax image —help

How do I check the version of Minomax CLI?

Use the —version flag to check the current version of Minomax CLI.


Example:
minomax —version





Keywords:
  • Minomax FAQ
  • Web optimization queries
  • Image compression questions
  • Video compression