# 설치 brew install imagemagick # 명령어 mogrify identify convert [이미지의 정보를 보기] identify -verbose example.jpg [다른 타입으로 변환] convert input.gif output.png https://lifeasy88.tistory.com/51 imagemagick 설치 및 사용법(사진 용량 및 크기 줄이기) Mac에서 이미지 편집에 자주 사용하는 커맨드 라인 툴인 imagemaggick을 소개합니다. imagemagick은 커맨드 라인 명령어로 엄청나게 다양한 이미지 편집 기능을 제공하는 프로그램이에요. 저는 일반적 lifeasy88.tistory.com
# 설치 brew install mozjpeg # 주의 설치 후 mozjpeg 이라는 바이너리가 없어서 헤멜 수도 있는데, 설치되는 바이너리 이름은 cjpeg, djpeg, jpegtran 등등 다양하므로 참고하자. # 사용하는 방법 https://seorenn.github.io/note/mozjpeg-compress-jpeg-images.html MozJPEG으로 JPEG 이미지 압축하기 - Seorenn Note MozJPEG을 통해 같이 설치되는 djpeg 을 이용하면 JPEG 이미지의 압축을 해제할 수 있으니 위처럼 파일 타입을 인식하지 못 하는 경우 이걸 같이 사용할 수 있다. djpeg input.jpg | cjpeg -quality 75 > output.jpg seorenn.github.io
https://command-not-found.com/pngcrush command-not-found.com - pngcrush Install pngcrush command on any operating system. command-not-found.com # 설치 brew install pngcrush [주의] pngcrush를 사용할 때 압축할 png 파일이 있는 폴더에서 명령어를 입력해야 사용할 수 있음. # 파일 압축 pngcrush in.png out.png # 모든 png 파일을 디렉토리로 압축 pngcrush -d path/to/output *.png