이미지 변환 프로그램이다.
매우 많은 이미지 포맷을 지원하며, 
변환이외에도 여러가지 이미지 관련 기능을 제공한다.
(compare, conjure, display, identify 등...)

이중 이미지 변환에 쓰이는 명령어는 convert.exe인데
특히 테스트 이미지를 만들 때 매우 유용하다.
보통 개발자들은 YUV포맷을 많이 사용하는데
YUV포맷을 더욱 세분화하여 subsampling factor까지 지정해 줄 수 있다.

먼저 설치를 하고, 설치된 디렉토리에서
다음과 같이 cmd를 입력해서 이미지를 변환할 수 있다.
JPEG -> YUV420
convert.exe test.jpg -sampling-factor 2x2 output.yuv

JPEG -> YUV422
convert.exe test.jpg output.uyvy

JPEG -> YUV444
convert.exe test.jpg output.ycbcr

YUV(SEQ) -> MPEG
convert.exe -size 352x288 test.yuv output.mpeg

MPEG -> YUV(SEQ)
ffmpeg.exe -i test.mpeg output.yuv
이미지 포맷 변환 이외에도 지원하는 변환 기능은
convert.exe --help
를 통해 알아보도록 하자

지원하는 image의 포맷은
identify.exe -list format
을 통해 알 수 있다.

Reference

1. http://www.imagemagick.org
Posted by sunshowers
,