<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>PlugOut</author_name>
  <author_url>https://blog.hatena.ne.jp/PlugOut/</author_url>
  <blog_title>Unknown Region</blog_title>
  <blog_url>https://plugout.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>大量の画像を一気に同一サイズにリサイズしたいときってありますよね。 僕も前にある大量のサムネイル画像をブログに掲載する際にそれが必要になり、いろんなツールを試した記憶があります。 今回はRubyでRMagickを使った一括リサイズ処理を書いたのでこちらに載せておきます。 あ、RMagickが動作する環境が必要なので注意してくださいね。 コード: resizer.rb #!/usr/bin/ruby require 'RMagick' require 'optparse' input = &quot;./input&quot; output = &quot;./output&quot; scale = 1.0 width = 0 he…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fplugout.hateblo.jp%2Fentry%2F2018%2F08%2F31%2F114422&quot; title=&quot;【Ruby】RMagickで画像を一括リサイズ - Unknown Region&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>https://cdn-ak.f.st-hatena.com/images/fotolife/P/PlugOut/20180715/20180715001222.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-31 11:44:22</published>
  <title>【Ruby】RMagickで画像を一括リサイズ</title>
  <type>rich</type>
  <url>https://plugout.hateblo.jp/entry/2018/08/31/114422</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
