<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seiunsky</author_name>
  <author_url>https://blog.hatena.ne.jp/seiunsky/</author_url>
  <blog_title>すがブロ</blog_title>
  <blog_url>https://sugamasao.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>単純に縮小するという話ではなくて、JPGのファイルフォーマットのEXIFの中にサムネイルが収められている（ことが多いハズ）ので、そこからサムネイルを取得してみようという話。 やってみた Rubyのexifrっていうの使うと一瞬というか、何のひねりもなくできちゃいましたね。thumbnailプロパティでバイナリが取得できるので、保存するだけです。 簡単に取得できたけれど、サムネイルサイズが160x120程度っぽいので*1、正直小さすぎて使いどころが難しいかも。 あと、データが空の場合とかも考慮してないので、きちんと使うにはもう少し調査が必要ですね。 もうちょっと本腰を入れて サムネイルを詐称する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20120504%2F1336141965&quot; title=&quot;JPGからサムネイルを取得する - すがブロ&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>2012-05-04 23:32:45</published>
  <title>JPGからサムネイルを取得する</title>
  <type>rich</type>
  <url>https://sugamasao.hatenablog.com/entry/20120504/1336141965</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
