<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomorrowkey</author_name>
  <author_url>https://blog.hatena.ne.jp/tomorrowkey/</author_url>
  <blog_title>明日の鍵</blog_title>
  <blog_url>https://tomorrowkey.hatenablog.jp/</blog_url>
  <categories>
    <anon>ImageMagick</anon>
    <anon>shell</anon>
  </categories>
  <description>ImageMagickのidentifyコマンドを使って画像の判定ができる。 拡張子はJPGと言いながら実はPNGだった例 $ identify -format %m ./path/to/image-file.jpg PNG 特定のディレクトリ以下のすべてのファイルの種類を表示するならこんな感じ for imagefile in $(find ./ -name *.jpg); do format=$(identify -format %m $imagefile) echo &quot;${format} ${imagefile}&quot; done jpg以外のファイルを探すならこんな感じ for imagef…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomorrowkey.hatenablog.jp%2Fentry%2Fdetect-image-format-with-image-magick&quot; title=&quot;ImageMagickを使って画像の種類を判別する - 明日の鍵&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-12-12 09:59:48</published>
  <title>ImageMagickを使って画像の種類を判別する</title>
  <type>rich</type>
  <url>https://tomorrowkey.hatenablog.jp/entry/detect-image-format-with-image-magick</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
