<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hsaitou</author_name>
  <author_url>https://blog.hatena.ne.jp/hsaitou/</author_url>
  <blog_title>Choorker's Field Notes.</blog_title>
  <blog_url>https://fnta.hatenablog.com/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>choorkerをリニューアルするため、コツコツと開発中。 choorkerでは、ユーザが投稿した画像から撮影日を抜き出し、それを「釣った日時」として保存している。なのでユーザは画像を投稿する際に、わざわざ日時を入力しなくてもいい。該当のモデルにて下記のようなロジックを組み込む。 画像のアップロードにはcarriewave、編集はminimagickを使用している。 class Sample &lt; ActiveRecord::Base mount_uploader :image, ImageUploader before_save :get_exif def get_exif img = Min…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffnta.hatenablog.com%2Fentry%2F2015%2F03%2F17%2F220710&quot; title=&quot;画像データから撮影日を抽出し、テーブルに保存する - Choorker&amp;#39;s Field Notes.&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-03-17 22:07:10</published>
  <title>画像データから撮影日を抽出し、テーブルに保存する</title>
  <type>rich</type>
  <url>https://fnta.hatenablog.com/entry/2015/03/17/220710</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
