LoginSignup
8
8

More than 3 years have passed since last update.

2015-01-18 ImageMagick > 画像ファイルの情報を見る > identify test.bmp

Last updated at Posted at 2015-01-17

画像ファイルを持っているが、その情報(size、depthなど)を調べるにはImageMagickというツールにあるidentifyコマンドを使う。

$ identify test.bmp

と実行すると

test.bmp BMP 320x240 320x240+0+0 1-bit sRGB 2c 9.73KB 0.000u 0:00.000

のように表示される。これでsize: 320x240, depth:1-bit などの情報がわかる。

さらに詳細な情報を知りたい場合は

$ identify -verbose test.bmp

と実行すると、以下のような内容が表示される。

Image: test.bmp
Format: BMP (Microsoft Windows bitmap image)
Class: PseudoClass
Geometry: 320x240+0+0
Units: PixelsPerCentimeter
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: Gray
Depth: 1-bit
Channel depth:
  gray: 1-bit
(以下略)

Link: ImageMagick Identify Command-Line Tool

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8