diff --git a/pages.ru/common/cwebp.md b/pages.ru/common/cwebp.md new file mode 100644 index 000000000..5b74994b3 --- /dev/null +++ b/pages.ru/common/cwebp.md @@ -0,0 +1,24 @@ +# cwebp + +> Сжимает файл изображения в формат WebP. +> Больше информации: . + +- Сжать WebP со стандартными настройками (q = 75) с сохранением в выходной файл: + +`cwebp {{путь/к/изображению}} -o {{путь/к/результату.webp}}` + +- Сжать WebP с наилучшим качеством и наибольшим размером файла: + +`cwebp {{путь/к/изображению}} -o {{путь/к/результату.webp}} -q {{100}}` + +- Сжать WebP с наихудшим качеством и наименьшим размером файла: + +`cwebp {{путь/к/изображению}} -o {{путь/к/результату.webp}} -q {{0}}` + +- Сжать WebP с изменением размера изображения: + +`cwebp {{путь/к/изображению}} -o {{путь/к/результату.webp}} -resize {{width}} {{height}}` + +- Сжать WebP с удалением информации о прозрачности: + +`cwebp {{путь/к/изображению}} -o {{путь/к/результату.webp}} -noalpha` diff --git a/pages/common/cwebp.md b/pages/common/cwebp.md new file mode 100644 index 000000000..112f52827 --- /dev/null +++ b/pages/common/cwebp.md @@ -0,0 +1,24 @@ +# cwebp + +> Compress an image file to a WebP file. +> More information: . + +- Compress a WebP file with default settings (q = 75) to the [o]utput file: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}}` + +- Compress a WebP file with the best [q]uality and largest file size: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{100}}` + +- Compress a WebP file with the worst [q]uality and smallest file size: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{0}}` + +- Compress a WebP file and apply resize to image: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -resize {{width}} {{height}}` + +- Compress a WebP file and drop alpha channel information: + +`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -noalpha`