identify - describes the format and characteristics of one or more image files.
[[email protected] test-image]# identify b.jpg
b.jpg JPEG 1024x683 1024x683+0+0 8-bit DirectClass 641kb
[[email protected] test-image]#
[[email protected] test-image]#
[[email protected] test-image]# identify app-sun-biggest.jpg
app-sun-biggest.jpg JPEG 5184x3456 5184x3456+0+0 8-bit DirectClass 15.54mb
[[email protected] test-image]#
[[email protected] test-image]# identify b.jpg
b.jpg JPEG 1024x683 1024x683+0+0 8-bit DirectClass 641kb
[[email protected] test-image]#
[[email protected] test-image]#
convert - convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
[[email protected] test-image]# /usr/bin/convert -resize 518x345 app-sun-biggest.jpg b.jpg
[[email protected] test-image]# sz b.jpg
rz
zmodem trl+C ? 100% 185 KB 185 KB/s 00:00:01 0 Errors
[[email protected] test-image]#
[[email protected] test-image]#
[[email protected] test-image]# ls -lht
总用量 17M
-rw-r--r--. 1 root root 186K 11月 27 18:55 b.jpg
-rw-r--r--. 1 root root 170K 11月 27 18:35 a.jpg
-rwxr-xr-x. 1 root root 248 11月 27 17:49 convert_img.sh
-rw-r--r--. 1 root root 546K 11月 27 17:40 test-image.jpg
-rw-r--r--. 1 root root 16M 11月 24 16:21 app-sun-biggest.jpg
[[email protected] test-image]#