diff --git a/modules/highgui/doc/reading_and_writing_images_and_video.rst b/modules/highgui/doc/reading_and_writing_images_and_video.rst index b0ae2d8b9..d1829a01d 100644 --- a/modules/highgui/doc/reading_and_writing_images_and_video.rst +++ b/modules/highgui/doc/reading_and_writing_images_and_video.rst @@ -98,6 +98,8 @@ The function ``imread`` loads an image from the specified file and returns it. I * Portable Network Graphics - ``*.png`` (see the *Notes* section) + * WebP - ``*.webp`` (see the *Notes* section) + * Portable image format - ``*.pbm, *.pgm, *.ppm`` (always supported) * Sun rasters - ``*.sr, *.ras`` (always supported) @@ -134,6 +136,9 @@ Saves an image to a specified file. * For JPEG, it can be a quality ( ``CV_IMWRITE_JPEG_QUALITY`` ) from 0 to 100 (the higher is the better). Default value is 95. + * For WEBP, it can be a quality ( CV_IMWRITE_WEBP_QUALITY ) from 1 to 100 (the higher is the better). + By default (without any parameter) and for quality above 100 the lossless compression is used. + * For PNG, it can be the compression level ( ``CV_IMWRITE_PNG_COMPRESSION`` ) from 0 to 9. A higher value means a smaller size and longer compression time. Default value is 3. * For PPM, PGM, or PBM, it can be a binary format flag ( ``CV_IMWRITE_PXM_BINARY`` ), 0 or 1. Default value is 1.