Forrest logo
back to the avifenc tool

avifenc:tldr:49a24

avifenc: Encode with a specific speed, where 0=slowest, 10=fastest, and 6=default.
$ avifenc --speed ${2} ${path-to-image-png} ${path-to-image-avif}
try on your machine

This command is using the avifenc tool to convert an image file from PNG format to AVIF format. The avifenc command requires three arguments:

  1. --speed ${2}: This is an option to set the encoding speed of the AVIF conversion. The value ${2} is a placeholder for the second argument provided when executing the command. The actual value should be specified when running the command.

  2. ${path-to-image-png}: This is the path to the source image file in PNG format that you want to convert to AVIF. You need to replace ${path-to-image-png} with the actual path to the PNG file on your system.

  3. ${path-to-image-avif}: This is the path where you want to save the converted AVIF file. You need to replace ${path-to-image-avif} with the actual desired path and file name for the output AVIF file on your system.

Overall, this command takes a PNG image file, converts it to AVIF format, and saves the result as a new AVIF file. The exact speed setting for the conversion is specified using the second argument provided when running the command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the avifenc tool