<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wannabe-jellyfish</author_name>
  <author_url>https://blog.hatena.ne.jp/wannabe-jellyfish/</author_url>
  <blog_title>くらげになりたい。</blog_title>
  <blog_url>https://memory-lovers.blog/</blog_url>
  <categories>
    <anon>SVG</anon>
    <anon>CloudFunction</anon>
    <anon>OGP</anon>
  </categories>
  <description>Nuxt+Firebaseで開発してるサービスのOGP画像を改善しようと、 いろいろ試してみたときの備忘録。 OGP画像の生成はクライアント側とサーバ側かがあるが、 Firestoreの変更に合わせて生成したいので、 Cloud Function上で利用できる方法を考えてた。 結果的に、 sharpで画像を合成してベースをつくり ImageMagickで文字を追記していく という構成になった。その試行錯誤の備忘録です。 やりたかったこと 背景画像+本の画像+文字みたいなOGP画像にしたい。 あと、座標の指定はめんどくさいので、楽な方法を探してみた。 SVGだとCSSも使えて、ブラウザ上で書くに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemory-lovers.blog%2Fentry%2F2020%2F02%2F19%2F150000&quot; title=&quot;Cloud FunctionとSVGでOGP画像生成を試行錯誤したまとめ - くらげになりたい。&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/w/wannabe-jellyfish/20200219/20200219142322.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-19 15:00:00</published>
  <title>Cloud FunctionとSVGでOGP画像生成を試行錯誤したまとめ</title>
  <type>rich</type>
  <url>https://memory-lovers.blog/entry/2020/02/19/150000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
