<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakinor</author_name>
  <author_url>https://blog.hatena.ne.jp/nakinor/</author_url>
  <blog_title>sci</blog_title>
  <blog_url>https://sci.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>まるぱく 手持ちの写真の高さを揃える必要があったので、画像を縮小するスクリプトを作成した。はじめに Ruby で実装して作業は終了したのだけれど、勉強のために golang で実装し直してみた。参考にしたのはまっつんさんのこれ。 Ruby では標準で画像のサイズを取得する方法が無かったので、identify を使って結果をパースし、480 よりも大きい場合は convert で縮小するという流れ。 golang では image パッケージが標準でついているのでこれを利用。縮小する部分は無いので、これも convert を使って縮小させた。 Ruby ではサクサク実装できたのだけれど、gola…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsci.hateblo.jp%2Fentry%2FGolang_image&quot; title=&quot;糊としての Golang - sci&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>2015-09-08 00:00:00</published>
  <title>糊としての Golang</title>
  <type>rich</type>
  <url>https://sci.hateblo.jp/entry/Golang_image</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
