PageRenderTime 59ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/ImageMagick/script/identify.html

https://gitlab.com/ImageMagick/ImageMagick
HTML | 429 lines | 406 code | 23 blank | 0 comment | 0 complexity | 824e0cca85a18d11748fc7ab0c046441 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
  5. <title>ImageMagick: Command-line Tools: Identify</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  7. <meta name="application-name" content="ImageMagick"/>
  8. <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves."/>
  9. <meta name="application-url" content="http://www.imagemagick.org"/>
  10. <meta name="generator" content="PHP"/>
  11. <meta name="keywords" content="command-line, tools:, identify, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
  12. <meta name="rating" content="GENERAL"/>
  13. <meta name="robots" content="INDEX, FOLLOW"/>
  14. <meta name="generator" content="ImageMagick Studio LLC"/>
  15. <meta name="author" content="ImageMagick Studio LLC"/>
  16. <meta name="revisit-after" content="2 DAYS"/>
  17. <meta name="resource-type" content="document"/>
  18. <meta name="copyright" content="Copyright (c) 1999-2015 ImageMagick Studio LLC"/>
  19. <meta name="distribution" content="Global"/>
  20. <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
  21. <link rel="icon" href="../image/wand.png"/>
  22. <link rel="shortcut icon" href="../image/wand.ico"/>
  23. <link rel="stylesheet" href="../css/magick.php"/>
  24. </head>
  25. <body>
  26. <div class="main">
  27. <div class="magick-masthead">
  28. <div class="container">
  29. <script async="async" src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle"
  30. style="display:block"
  31. data-ad-client="ca-pub-3129977114552745"
  32. data-ad-slot="6345125851"
  33. data-ad-format="auto"></ins>
  34. <script>
  35. (adsbygoogle = window.adsbygoogle || []).push({});
  36. </script>
  37. <nav class="magick-nav">
  38. <a class="magick-nav-item " href="../index.php">Home</a>
  39. <a class="magick-nav-item " href="binary-releases.php">Download</a>
  40. <a class="magick-nav-item " href="command-line-tools.php">Tools</a>
  41. <a class="magick-nav-item " href="command-line-processing.php">Command-line</a>
  42. <a class="magick-nav-item " href="resources.php">Resources</a>
  43. <a class="magick-nav-item " href="api.php">Develop</a>
  44. <a class="magick-nav-item " href="search.php">Search</a>
  45. <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
  46. </nav>
  47. </div>
  48. </div>
  49. <div class="container">
  50. <div class="magick-header">
  51. <p class="text-center"><a href="identify.php#usage">Example Usage</a> <a href="identify.php#options">Option Summary</a></p>
  52. <p class="lead magick-description">The <code>identify</code> program describes the format and characteristics of one or more image files. It also reports if an image is incomplete or corrupt. The information returned includes the image number, the file name, the width and height of the image, whether the image is colormapped or not, the number of colors in the image, the number of bytes in the image, the format of the image (JPEG, PNM, etc.), and finally the number of seconds it took to read and process the image. Many more attributes are available with the verbose option. See <a href="command-line-processing.php">Command Line Processing</a> for advice on how to structure your <code>identify</code> command or see below for example usages of the command.</p>
  53. <h2 class="magick-header"><a id="usage"></a>Example Usage</h2>
  54. <p>We list a few examples of the <code>identify</code> command here to illustrate its usefulness and ease of use. To get started, lets identify an image in the JPEG format:</p>
  55. <pre>
  56. -> identify rose.jpg
  57. rose.jpg JPEG 70x46 70x46+0+0 8-bit sRGB 2.36KB 0.000u 0:00.000
  58. </pre>
  59. <p>Next, we look at the same image in greater detail:</p>
  60. <pre class="pre-scrollable">-> identify -verbose rose.jpg
  61. Image: rose.jpg
  62. Format: JPEG (Joint Photographic Experts Group JFIF format)
  63. Mime type: image/jpeg
  64. Class: DirectClass
  65. Geometry: 70x46+0+0
  66. Units: Undefined
  67. Type: TrueColor
  68. Endianess: Undefined
  69. Colorspace: sRGB
  70. Depth: 8-bit
  71. Channel depth:
  72. red: 8-bit
  73. green: 8-bit
  74. blue: 8-bit
  75. Channel statistics:
  76. Pixels: 3220
  77. Red:
  78. min: 35 (0.137255)
  79. max: 255 (1)
  80. mean: 145.57 (0.570865)
  81. standard deviation: 67.2976 (0.263912)
  82. kurtosis: -1.37971
  83. skewness: 0.0942169
  84. entropy: 0.974889
  85. Green:
  86. min: 33 (0.129412)
  87. max: 255 (1)
  88. mean: 89.2193 (0.349879)
  89. standard deviation: 52.0803 (0.204236)
  90. kurtosis: 2.70722
  91. skewness: 1.82562
  92. entropy: 0.877139
  93. Blue:
  94. min: 11 (0.0431373)
  95. max: 255 (1)
  96. mean: 80.3742 (0.315193)
  97. standard deviation: 53.8536 (0.21119)
  98. kurtosis: 2.90978
  99. skewness: 1.92617
  100. entropy: 0.866692
  101. Image statistics:
  102. Overall:
  103. min: 11 (0.0431373)
  104. max: 255 (1)
  105. mean: 105.055 (0.411979)
  106. standard deviation: 58.1422 (0.228008)
  107. kurtosis: 1.25759
  108. skewness: 1.4277
  109. entropy: 0.90624
  110. Rendering intent: Perceptual
  111. Gamma: 0.454545
  112. Chromaticity:
  113. red primary: (0.64,0.33)
  114. green primary: (0.3,0.6)
  115. blue primary: (0.15,0.06)
  116. white point: (0.3127,0.329)
  117. Background color: white
  118. Border color: srgb(223,223,223)
  119. Matte color: grey74
  120. Transparent color: black
  121. Interlace: None
  122. Intensity: Undefined
  123. Compose: Over
  124. Page geometry: 70x46+0+0
  125. Dispose: Undefined
  126. Iterations: 0
  127. Compression: JPEG
  128. Quality: 92
  129. Orientation: Undefined
  130. Properties:
  131. date:create: 2014-11-09T09:00:35-05:00
  132. date:modify: 2014-11-09T09:00:35-05:00
  133. jpeg:colorspace: 2
  134. jpeg:sampling-factor: 2x2,1x1,1x1
  135. signature: 22a99838bd5594250f706d1d9383b2830f439fcbaf1455cbe2f7f59a4deb065a
  136. Artifacts:
  137. filename: rose.jpg
  138. verbose: true
  139. Tainted: False
  140. Filesize: 2.36KB
  141. Number pixels: 3.22K
  142. Pixels per second: 3.22EB
  143. User time: 0.000u
  144. Elapsed time: 0:01.000
  145. Version: ImageMagick Q16 http://www.imagemagick.org
  146. </pre>
  147. <p>To get the print size in inches of an image at 72 DPI, use:</p>
  148. <pre>
  149. -> identify -format "%[fx:w/72] by %[fx:h/72] inches" document.png
  150. 8.5 x 11 inches
  151. </pre>
  152. <p>The depth and dimensions of a raw image must be specified on the command line:</p>
  153. <pre>
  154. -> identify -depth 8 -size 640x480 image.raw
  155. image.raw RGB 640x480 sRGB 9kb 0.000u 0:01
  156. </pre>
  157. <p>Here we display the image texture features, moments, perceptual hash, and the number of unique colors in the image:</p>
  158. <pre>
  159. -> identify -verbose -features 1 -moments -unique image.png
  160. </pre>
  161. <p>Here is a special define that outputs the location of the minimum or maximum pixel of the image:</p>
  162. <pre>
  163. identify -precision 5 -define identify:locate=maximum -define identify:limit=3 image.png
  164. </pre>
  165. <p>You can find additional examples of using <code>identify</code> in <a href="http://www.imagemagick.org/Usage/">Examples of ImageMagick Usage</a>.</p>
  166. <h2 class="magick-header"><a id="options"></a>Option Summary</h2>
  167. <p>The <code>identify</code> command recognizes these options. Click on an option to get more details about how that option works.</p>
  168. <table class="table table-condensed table-striped">
  169. <tbody>
  170. <tr>
  171. <th align="left">Option</th>
  172. <th align="left">Description</th>
  173. </tr>
  174. <tr>
  175. <td><a href="command-line-options.php#alpha">-alpha</a></td>
  176. <td>on, activate, off, deactivate, set, opaque, copy",
  177. transparent, extract, background, or shape the alpha channel</td>
  178. </tr>
  179. <tr>
  180. <td><a href="command-line-options.php#antialias">-antialias</a></td>
  181. <td>remove pixel-aliasing</td>
  182. </tr>
  183. <tr>
  184. <td><a href="command-line-options.php#authenticate">-authenticate <var>value</var></a></td>
  185. <td>decrypt image with this password</td>
  186. </tr>
  187. <tr>
  188. <td><a href="command-line-options.php#channel">-channel <var>type</var></a></td>
  189. <td>apply option to select image channels</td>
  190. </tr>
  191. <tr>
  192. <td><a href="command-line-options.php#clip">-clip</a></td>
  193. <td>clip along the first path from the 8BIM profile</td>
  194. </tr>
  195. <tr>
  196. <td><a href="command-line-options.php#clip-mask">-clip-mask</a> <var>filename</var></td>
  197. <td>associate clip mask with the image</td>
  198. </tr>
  199. <tr>
  200. <td><a href="command-line-options.php#clip-path">-clip-path <var>id</var></a></td>
  201. <td>clip along a named path from the 8BIM profile</td>
  202. </tr>
  203. <tr>
  204. <td><a href="command-line-options.php#colorspace">-colorspace <var>type</var></a></td>
  205. <td>set image colorspace</td>
  206. </tr>
  207. <tr>
  208. <td><a href="command-line-options.php#crop">-crop <var>geometry</var></a></td>
  209. <td>crop the image</td>
  210. </tr>
  211. <tr>
  212. <td><a href="command-line-options.php#debug">-debug <var>events</var></a></td>
  213. <td>display copious debugging information</td>
  214. </tr>
  215. <tr>
  216. <td><a href="command-line-options.php#define">-define <var>format:option</var></a></td>
  217. <td>define one or more image format options</td>
  218. </tr>
  219. <tr>
  220. <td><a href="command-line-options.php#density">-density <var>geometry</var></a></td>
  221. <td>horizontal and vertical density of the image</td>
  222. </tr>
  223. <tr>
  224. <td><a href="command-line-options.php#depth">-depth <var>value</var></a></td>
  225. <td>image depth</td>
  226. </tr>
  227. <tr>
  228. <td><a href="command-line-options.php#endian">-endian <var>type</var></a></td>
  229. <td>endianness (MSB or LSB) of the image</td>
  230. </tr>
  231. <tr>
  232. <td><a href="command-line-options.php#extract">-extract <var>geometry</var></a></td>
  233. <td>extract area from image</td>
  234. </tr>
  235. <tr>
  236. <td><a href="command-line-options.php#features">-features <var>distance</var></a></td>
  237. <td>analyze image features (e.g. contract, correlations, etc.).</td>
  238. </tr>
  239. <tr>
  240. <td><a href="command-line-options.php#format_identify_">-format <var>string</var></a></td>
  241. <td>output formatted image characteristics</td>
  242. </tr>
  243. <tr>
  244. <td><a href="command-line-options.php#gamma">-gamma <var>value</var></a></td>
  245. <td>level of gamma correction</td>
  246. </tr>
  247. <tr>
  248. <td><a href="command-line-options.php#intensity">-grayscale <var>method</var></a></td>
  249. <td>convert image to grayscale</td>
  250. </tr>
  251. <tr>
  252. <td><a href="command-line-options.php#help">-help</a></td>
  253. <td>print program options</td>
  254. </tr>
  255. <tr>
  256. <td><a href="command-line-options.php#interlace">-interlace <var>type</var></a></td>
  257. <td>type of image interlacing scheme</td>
  258. </tr>
  259. <tr>
  260. <td><a href="command-line-options.php#interpolate">-interpolate <var>method</var></a></td>
  261. <td>pixel color interpolation method</td>
  262. </tr>
  263. <tr>
  264. <td><a href="command-line-options.php#limit">-limit <var>type value</var></a></td>
  265. <td>pixel cache resource limit</td>
  266. </tr>
  267. <tr>
  268. <td><a href="command-line-options.php#list">-list <var>type</var></a></td>
  269. <td>Color, Configure, Delegate, Format, Magic, Module, Resource, or Type</td>
  270. </tr>
  271. <tr>
  272. <td><a href="command-line-options.php#log">-log <var>format</var></a></td>
  273. <td>format of debugging information</td>
  274. </tr>
  275. <tr>
  276. <td><a href="command-line-options.php#mask">-mask <var>filename</var></a></td>
  277. <td>associate a mask with the image</td>
  278. </tr>
  279. <tr>
  280. <td><a href="command-line-options.php#moments">-moments</a></td>
  281. <td>display image moments and perceptual hash.</td>
  282. </tr>
  283. <tr>
  284. <td><a href="command-line-options.php#monitor">-monitor</a></td>
  285. <td>monitor progress</td>
  286. </tr>
  287. <tr>
  288. <td><a href="command-line-options.php#negate">-negate</a></td>
  289. <td>replace each pixel with its complementary color </td>
  290. </tr>
  291. <tr>
  292. <td><a href="command-line-options.php#precision">-precision <var>value</var></a></td>
  293. <td>set the maximum number of significant digits to be printed</td>
  294. </tr>
  295. <tr>
  296. <td><a href="command-line-options.php#quiet">-quiet</a></td>
  297. <td>suppress all warning messages</td>
  298. </tr>
  299. <tr>
  300. <td><a href="command-line-options.php#regard-warnings">-regard-warnings</a></td>
  301. <td>pay attention to warning messages.</td>
  302. </tr>
  303. <tr>
  304. <td><a href="command-line-options.php#respect-parentheses">-respect-parentheses</a></td>
  305. <td>settings remain in effect until parenthesis boundary.</td>
  306. </tr>
  307. <tr>
  308. <td><a href="command-line-options.php#sampling-factor">-sampling-factor <var>geometry</var></a></td>
  309. <td>horizontal and vertical sampling factor</td>
  310. </tr>
  311. <tr>
  312. <td><a href="command-line-options.php#set">-set <var>attribute value</var></a></td>
  313. <td>set an image attribute</td>
  314. </tr>
  315. <tr>
  316. <td><a href="command-line-options.php#size">-size <var>geometry</var></a></td>
  317. <td>width and height of image</td>
  318. </tr>
  319. <tr>
  320. <td><a href="command-line-options.php#strip">-strip</a></td>
  321. <td>strip image of all profiles and comments</td>
  322. </tr>
  323. <tr>
  324. <td><a href="command-line-options.php#unique">-unique</a></td>
  325. <td>display image the number of unique colors in the image.</td>
  326. </tr>
  327. <tr>
  328. <td><a href="command-line-options.php#units">-units <var>type</var></a></td>
  329. <td>the units of image resolution</td>
  330. </tr>
  331. <tr>
  332. <td><a href="command-line-options.php#verbose">-verbose</a></td>
  333. <td>print detailed information about the image</td>
  334. </tr>
  335. <tr>
  336. <td><a href="command-line-options.php#version">-version</a></td>
  337. <td>print version information</td>
  338. </tr>
  339. <tr>
  340. <td><a href="command-line-options.php#virtual-pixel">-virtual-pixel <var>method</var></a></td>
  341. <td>access method for pixels outside the boundaries of the image</td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. </div>
  346. <footer class="magick-footer">
  347. <p><a href="support.php">Donate</a>
  348. <a href="sitemap.php">Sitemap</a>
  349. <a href="links.php">Related</a>
  350. <a href="architecture.php">Architecture</a>
  351. </p>
  352. <p><a href="identify.php#">Back to top</a>
  353. <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
  354. <a href="contact.php">Contact Us</a></p>
  355. <p><small>© 1999-2016 ImageMagick Studio LLC</small></p>
  356. </footer>
  357. </div><!-- /.container -->
  358. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  359. <script src="http://nextgen.imagemagick.org/js/magick.php"></script>
  360. </div>
  361. </body>
  362. </html>