1. 程式人生 > >linux系統下檢視圖片尺寸的命令

linux系統下檢視圖片尺寸的命令

1、首先需要安裝:imagemagick,即:

      # apt-get install imagemagick

2、用 identify 命令查詢對應圖片的資訊,即:

      # identify logo.jpg

      輸出資訊:logo.jpg JPEG 142x57 142x57+0+0 8-bit DirectClass 5.78KB 0.000u 0:00.050

3、網上查詢可以用file命令查詢,但實踐後並不能查詢到希望的結果,如下:

     #  file logo.jpg
     輸出資訊:logo.jpg: JPEG image data, JFIF standard 1.01