gif2webp
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이름
gif2webp
-- GIF 이미지를 WebP로 변환
개요
gif2webp [options] input_file.gif -o output_file.webp
설명
gif2webp
는 GIF 이미지를 WebP 이미지로 변환합니다.
옵션
기본 옵션은 다음과 같습니다.
-o string
- 출력 WebP 파일의 이름을 지정합니다. 생략하면
gif2webp
에서 다음을 실행합니다.
통계만 보고합니다.
'-' 사용 출력 이름은 'stdout'에 출력을 전달합니다.
-- string
- 입력 파일을 명시적으로 지정합니다. 이 옵션은 입력값이
'-'로 시작하는 파일 예로 들 수 있습니다 이 옵션은 마지막에 표시되어야 합니다.
이후 다른 옵션은 무시됩니다. 입력 파일이 '-'인 경우
'stdin'에서 데이터를 읽습니다. 할 수 있습니다.
-h, -help
- 사용 정보
-version
- 버전 번호 (Major.minor.revision)를 출력하고 종료합니다.
-lossy
- 손실이 있는 압축을 사용하여 이미지를 인코딩합니다.
-mixed
- 혼합 압축 모드: 다음을 선택하여 이미지 압축을 최적화합니다.
휴리스틱 방식으로 각 프레임에 대한 손실 또는 무손실 압축을
정의할 수 있습니다
-q float
0
~100
사이의 RGB 채널에 압축 계수를 지정합니다. 기본값은 75
입니다. 무손실 압축 (기본값)의 경우에는
을 사용하면 더 빠른 압축 속도를 사용할 수 있지만 더 큰 파일이 생성됩니다. 최대
압축은 100
값을 사용하여 실행됩니다. 손실(lossy)의 경우
(-lossy 옵션으로 지정됨) 작은 계수가
더 작은 파일로 변환하세요. 최고 품질은 값을 사용하여 얻을 수 있습니다.
(총 100
개)
-min_size
- 이미지를 인코딩하여 크기를 최소화합니다. 그러면 키 프레임 삽입이 사용 중지되고
는 폐기 메서드를 선택하여 각 프레임에 대해 가장 작은 출력을 생성합니다. 그것은
기본적으로 무손실 압축을 사용하지만
-q
, -m
,
-lossy
또는 -mixed
옵션
-m int
- 사용할 압축 방법을 지정합니다. 이 매개변수는
압축 파일 크기 및 품질 간에 차이가 나는 것을 볼 수 있습니다.
가능한 값 범위는
0
~6
입니다. 기본값은 4
입니다. 높은 경우
인코더가 추가 값을 검사하는 데 더 많은 시간을
품질 이득을 결정합니다. 더 낮은 값은
이로 인해 파일 크기가 커지는 대신 처리 시간이 단축되고
압축 품질이 떨어집니다.
-kmin int
, -kmax int
연속 키 프레임 간의 최소 및 최대 거리 지정
(독립적으로 디코딩 가능한 프레임)을 구현합니다. 이 도구는
필요에 따라 일부 키프레임을 출력 애니메이션에 삽입하여
확인할 수 있습니다
kmax
값이 0
이면 키 프레임 삽입이 사용 중지됩니다. kmax
값
이 값을 1
로 설정하면 모든 프레임이 키 프레임이 됩니다. kmin
값이 다음 값이 아님
모두 고려해야 합니다 일반적인 값은
범위는 3
에서 30
까지입니다. 기본값은 kmin
= 9
, kmax
= 17
입니다.
무손실 압축의 경우 kmin
= 3
, kmax
= 5
입니다.
이 두 옵션은 많은 수의 애니메이션 이미지에만 적용됩니다.
확인할 수 있습니다.
낮은 값을 사용할수록 더 많은 프레임이 키 프레임으로 변환됩니다.
이로 인해 프레임을 디코딩하는 데 필요한 프레임 수가 줄어들 수 있습니다.
디코딩 성능을 개선할 수 있습니다. 그러나 이로 인해
파일 크기가 약간 더 커졌습니다. 값이 클수록 디코딩이 저하될 수 있습니다.
파일 크기는 더 작아집니다.
일부 제한사항:
- km < kmax,
- kmin >= kmax / 2 + 1; 및
- kmax - kmin <= 30.
이러한 제한사항 중 하나라도 충족되지 않으면 제한사항이 적용됩니다.
자동으로 확장 및 축소할 수 있습니다
-metadata string
다음 경우에 입력에서 출력으로 복사할 쉼표로 구분된 메타데이터 목록입니다.
있습니다. 유효한 값: all
, none
, icc
, xmp
기본값은 xmp
입니다.
-f int
손실 있는 인코딩 전용 (-lossy
옵션으로 지정됨)
디블로킹 필터의 강도로, 0
(필터링 없음)에서 100
사이입니다.
(최대 필터링). 값이 0
이면 필터링이 사용 중지됩니다. 높음
값은 이후에 적용된 필터링 프로세스의 강도를 높입니다.
있습니다. 값이 클수록 사진이 더 부드러워집니다.
나타납니다. 일반적인 값은 일반적으로 20
에서 50
사이입니다.
-mt
가능한 경우 인코딩에 멀티스레딩을 사용합니다.
-loop_compatibility
사용 설정하면 Chrome과 호환되는 방식으로 루프 정보를 처리합니다.
Firefox 이전 버전인 M62 (포함) 및 Firefox
-v
추가 정보를 출력합니다.
-quiet
아무것도 인쇄하지 마세요.
버그
예
gif2webp picture.gif -o picture.webp
gif2webp -q 70 picture.gif -o picture.webp
gif2webp -lossy -m 3 picture.gif -o picture_lossy.webp
gif2webp -lossy -f 50 picture.gif -o picture.webp
gif2webp -min_size -q 30 -o picture.webp -- ---picture.gif
cat picture.gif | gif2webp -o - -- - > output.webp
저자
gif2webp
은 libwebp
의 일부이며 WebP팀에서 작성했습니다.
최신 소스 트리는 다음 위치에서 확인할 수 있습니다.
https://chromium.googlesource.com/webm/libwebp/
이 매뉴얼 페이지는 Urvang Joshi(urvang@google.com)가
Debian 프로젝트이며 다른 프로젝트에서 사용할 수도 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-08(UTC)
[null,null,["최종 업데이트: 2025-08-08(UTC)"],[[["\u003cp\u003e\u003ccode\u003egif2webp\u003c/code\u003e is a command-line tool used to convert GIF images to the WebP format, potentially offering better compression and quality.\u003c/p\u003e\n"],["\u003cp\u003eUsers can adjust compression parameters like quality (\u003ccode\u003e-q\u003c/code\u003e), lossy/lossless encoding (\u003ccode\u003e-lossy\u003c/code\u003e, \u003ccode\u003e-lossless\u003c/code\u003e), and methods (\u003ccode\u003e-m\u003c/code\u003e) for customized output.\u003c/p\u003e\n"],["\u003cp\u003eAdvanced options allow control over key frames (\u003ccode\u003e-kmin\u003c/code\u003e, \u003ccode\u003e-kmax\u003c/code\u003e), metadata handling (\u003ccode\u003e-metadata\u003c/code\u003e), and deblocking filter (\u003ccode\u003e-f\u003c/code\u003e) for fine-tuning.\u003c/p\u003e\n"],["\u003cp\u003eThe tool supports multi-threading (\u003ccode\u003e-mt\u003c/code\u003e) and offers options for compatibility with older browsers (\u003ccode\u003e-loop_compatibility\u003c/code\u003e) and controlling output verbosity (\u003ccode\u003e-v\u003c/code\u003e, \u003ccode\u003e-quiet\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDetailed usage instructions, including examples and bug reporting information, are provided in the documentation.\u003c/p\u003e\n"]]],["`gif2webp` converts GIF images to WebP format using the command `gif2webp [options] input_file.gif -o output_file.webp`. Key actions include specifying output file names (`-o`), setting compression quality (`-q`), choosing between lossy (`-lossy`) or mixed (`-mixed`) compression, optimizing for minimum size (`-min_size`), adjusting compression methods (`-m`), and setting keyframe intervals (`-kmin`, `-kmax`). Multi-threading (`-mt`) and metadata copying (`-metadata`) are also available. The tool also support standard input and output redirection.\n"],null,["# gif2webp\n\nName\n----\n\n`gif2webp` -- Convert a GIF image to WebP\n\nSynopsis\n--------\n\n`gif2webp [options] input_file.gif -o output_file.webp`\n\nDescription\n-----------\n\n`gif2webp` converts a GIF image to a WebP image.\n\nOptions\n-------\n\nThe basic options are:\n\n`-o string`\n: Specify the name of the output WebP file. If omitted, `gif2webp` will\n perform conversion but only report statistics.\n Using \"-\" as output name will direct output to 'stdout'.\n\n`-- string`\n: Explicitly specify the input file. This option is useful if the input\n file starts with an \"-\" for instance. This option must appear **last**.\n Any other options afterward will be ignored. If the input file is \"-\",\n the data will be read from 'stdin' instead of a file.\n\n`-h, -help`\n: Usage information\n\n`-version`\n: Print the version number (as major.minor.revision) and exit.\n\n`-lossy`\n: Encode the image using lossy compression.\n\n`-mixed`\n: Mixed compression mode: optimize compression of the image by picking\n either lossy or lossless compression for each frame heuristically.\n\n`-q float`\n: Specify the compression factor for RGB channels between `0` and `100`. The\n default is `75`. In case of lossless compression (default), a small factor\n enables faster compression speed, but produces a larger file. Maximum\n compression is achieved by using a value of `100`. In case of lossy\n compression (specified by the -lossy option), a small factor produces a\n smaller file with lower quality. Best quality is achieved by using a value\n of `100`.\n\n`-min_size`\n: Encode image to achieve smallest size. This disables key frame insertion and\n picks the dispose method resulting in the smallest output for each frame. It\n uses lossless compression by default, but can be combined with `-q`, `-m`,\n `-lossy` or `-mixed` options.\n\n`-m int`\n: Specify the compression method to use. This parameter controls the trade\n off between encoding speed and the compressed file size and quality.\n Possible values range from `0` to `6`. Default value is `4`. When higher\n values are used, the encoder will spend more time inspecting additional\n encoding possibilities and decide on the quality gain. Lower value can\n result in faster processing time at the expense of larger file size and\n lower compression quality.\n\n`-kmin int`, `-kmax int`\n\n: Specify the minimum and maximum distance between consecutive key frames\n (independently decodable frames) in the output animation. The tool will\n insert some key frames into the output animation as needed so that this\n criteria is satisfied.\n\n A `kmax` value of `0` will turn off insertion of key frames. A `kmax` value\n of `1` will result in all frames being key frames. `kmin` value is not\n taken into account in both these special cases. Typical values are in the\n range `3` to `30`. Default values are `kmin` = `9`, `kmax` = `17` for\n lossless compression and `kmin` = `3`, `kmax` = `5` for lossy compression.\n\n These two options are relevant only for animated images with large number\n of frames (\\\u003e50).\n\n When lower values are used, more frames will be converted to key frames.\n This may lead to smaller number of frames required to decode a frame on\n average, thereby improving the decoding performance. But this may lead to\n slightly bigger file sizes. Higher values may lead to worse decoding\n performance, but smaller file sizes.\n\n Some restrictions:\n\n - kmin \\\u003c kmax,\n - kmin \\\u003e= kmax / 2 + 1; and\n - kmax - kmin \\\u003c= 30.\n\n If any of these restrictions are not met, they will be enforced\n automatically.\n\n`-metadata string`\n\n: A comma separated list of metadata to copy from the input to the output if\n present. Valid values: `all`, `none`, `icc`, `xmp`. The default is `xmp`.\n\n`-f int`\n\n: For lossy encoding only (specified by the `-lossy` option). Specify the\n strength of the deblocking filter, between `0` (no filtering) and `100`\n (maximum filtering). A value of `0` will turn off any filtering. Higher\n value will increase the strength of the filtering process applied after\n decoding the picture. The higher the value the smoother the picture will\n appear. Typical values are usually in the range of `20` to `50`.\n\n`-mt`\n\n: Use multi-threading for encoding, if possible.\n\n`-loop_compatibility`\n\n: If enabled, handle the loop information in a compatible fashion for Chrome\n version prior to M62 (inclusive) and Firefox.\n\n`-v`\n\n: Print extra information.\n\n`-quiet`\n\n: Do not print anything.\n\nBugs\n----\n\n- Please report all bugs to our issue tracker: \u003chttps://issues.webmproject.org\u003e\n\n- Patches welcome! See this page to get started: \u003chttps://www.webmproject.org/code/contribute/submitting-patches/\u003e\n\nExamples\n--------\n\n gif2webp picture.gif -o picture.webp\n gif2webp -q 70 picture.gif -o picture.webp\n gif2webp -lossy -m 3 picture.gif -o picture_lossy.webp\n gif2webp -lossy -f 50 picture.gif -o picture.webp\n gif2webp -min_size -q 30 -o picture.webp -- ---picture.gif\n cat picture.gif | gif2webp -o - -- - \u003e output.webp\n\nAuthors\n-------\n\n`gif2webp` is part of `libwebp`, and was written by the WebP team.\nThe latest source tree is available at\n\u003chttps://chromium.googlesource.com/webm/libwebp/\u003e\n\nThis manual page was written by Urvang Joshi [urvang@google.com](mailto:urvang@google.com), for the\nDebian project (and may be used by others)."]]