2016-12-01から1ヶ月間の記事一覧
$ identify -format "%w x %h" ./hogehoge.jpg 1000 x 1333
ImageMagickのidentifyコマンドを使って画像の判定ができる。 拡張子はJPGと言いながら実はPNGだった例 $ identify -format %m ./path/to/image-file.jpg PNG 特定のディレクトリ以下のすべてのファイルの種類を表示するならこんな感じ for imagefile in $(f…