<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suguru03</author_name>
  <author_url>https://blog.hatena.ne.jp/suguru03/</author_url>
  <blog_title>suguru.dev</blog_title>
  <blog_url>https://suguru03.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>いまいち条件がわかりませんが、一度Decodeされたデータは再度Decodeしようとするとunknown formatになるようです。 Goのバージョンは1.6.2を使用しています。 依存ファイルは以下のとおりです。 import ( &quot;bytes&quot; &quot;image&quot; &quot;image/gif&quot; &quot;image/jpeg&quot; &quot;image/png&quot; &quot;io&quot; &quot;os&quot; ) ダメな例 まずはダメな例です。 file, _ := os.Open(&quot;./image.jpg&quot;) img, _ := jpeg.Decode(file) conf, encode, err := image.DecodeConfig…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsuguru03.hatenablog.com%2Fentry%2F2016%2F06%2F23%2F105152&quot; title=&quot;Image.Decodeでunknown formatになったときの対処法 - suguru.dev&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-06-23 10:51:52</published>
  <title>Image.Decodeでunknown formatになったときの対処法</title>
  <type>rich</type>
  <url>https://suguru03.hatenablog.com/entry/2016/06/23/105152</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
