<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyirm</author_name>
  <author_url>https://blog.hatena.ne.jp/hyirm/</author_url>
  <blog_title>コネヒト開発者ブログ</blog_title>
  <blog_url>https://tech.connehito.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに こんにちは！ フロントエンドエンジニアの もりや です。 今回はママリのアプリ内で使われている WebView で、画像をリサイズする処理を Canvas で実装した事例を紹介します。 画像のリサイズが必要な理由 昨今のスマホのカメラで撮った画像は数MB程度と大きく、アップロードに時間がかかったり、そもそもサーバー側で何MBまでの画像を許容するかなど課題もあります。 また iOS/Android のママリアプリでも、おそらく同様の理由からリサイズをしてアップロードするようになっていました。 そのため、WebView でもアップロード前に画像をリサイズする処理を入れ、快適かつ安全にアッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.connehito.com%2Fentry%2F2022%2F03%2F18%2F093812&quot; title=&quot;Canvas を使って画像をリサイズする - コネヒト開発者ブログ&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.user.blog.st-hatena.com/default_entry_og_image/108047865/1606787622759849</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-18 09:38:12</published>
  <title>Canvas を使って画像をリサイズする</title>
  <type>rich</type>
  <url>https://tech.connehito.com/entry/2022/03/18/093812</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
