티스토리 뷰
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
'npm, brew' 카테고리의 다른 글
[brew] imageMagicK - gif 압축 프로그램 (0) | 2022.04.20 |
---|---|
[brew] mozjpeg - jpeg 압축 프로그램 (0) | 2022.04.20 |
댓글