@kyanny's blog

My thoughts, my life. Views/opinions are my own.

ImageMagick の identify は input-file に URL を受け付ける

$ identify http://www.dan.co.jp/~dankogai/dan-180x240.png
http://www.dan.co.jp/~dankogai/dan-180x240.png=>dan-180x240.png PNG 180x240 180x240+0+0 8-bit sRGB 10.5KB 0.000u 0:00.009
$ wget http://www.dan.co.jp/~dankogai/dan-180x240.png; identify dan-180x240.png
--2016-05-25 03:14:05--  http://www.dan.co.jp/~dankogai/dan-180x240.png
Resolving www.dan.co.jp... 182.171.67.97, 240d:1b:20:e300::97
Connecting to www.dan.co.jp|182.171.67.97|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10514 (10K) [image/png]
Saving to: 'dan-180x240.png'

dan-180x240.png                    100%[==================================================================>]  10.27K  --.-KB/s   in 0.001s

2016-05-25 03:14:05 (7.76 MB/s) - 'dan-180x240.png' saved [10514/10514]

dan-180x240.png PNG 180x240 180x240+0+0 8-bit sRGB 10.5KB 0.000u 0:00.000

man を眺めたが URL も ok とは書いてないようだった。

$ identify --version
Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib