<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>自動生成 | gungiiのなるほどHack&amp;Tips</title>
	<atom:link href="https://gungii.com/tag/%E8%87%AA%E5%8B%95%E7%94%9F%E6%88%90/feed/" rel="self" type="application/rss+xml" />
	<link>https://gungii.com</link>
	<description>「なるほど」と納得できる経験(実例)と知識(手順)を提供します。</description>
	<lastBuildDate>Sat, 08 Jun 2024 05:23:03 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://gungii.com/wp/wp-content/uploads/2022/02/cropped-favicon-32x32.png</url>
	<title>自動生成 | gungiiのなるほどHack&amp;Tips</title>
	<link>https://gungii.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>WordPressテーマ「Cocoon」が自動生成するアイキャッチ画像の解説</title>
		<link>https://gungii.com/genepic-info/</link>
		
		<dc:creator><![CDATA[gungii]]></dc:creator>
		<pubDate>Sun, 12 Sep 2021 06:56:15 +0000</pubDate>
				<category><![CDATA[WordPressのテーマ]]></category>
		<category><![CDATA[Cocoon]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[自動生成]]></category>
		<guid isPermaLink="false">https://gungii.com/?p=12660</guid>

					<description><![CDATA[ブログ記事「WordPressで自動生成された画像を一括で削除する方法」で記載しました通り、「DNUI」というプラグインを使って、元画像のみ残して自動生成された画像を全て削除しました。必要のない画像を削除することで、サイ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>ブログ記事「WordPressで自動生成された画像を一括で削除する方法」で記載しました通り、「DNUI」というプラグインを使って、元画像のみ残して自動生成された画像を全て削除しました。必要のない画像を削除することで、サイトスピードの改善を図ろうとしました。が、結果はサイトスピードの改善は実現できず、テーマによるのかも知れませんが、Cocoonではむしろ遅くなった為、再度アイキャッチ画像を再生成しました。(再生成には「Regenerate Thumbnails」というプラグインを利用しました。)<br>自動生成される画像は、大きく2種類(「WordPressによるもの」と「テーマによるもの」)がありますが、「テーマによるもの」まで削除した為、最適な画像がなく大きな元画像を縮小したり、引き伸ばしたりして表示する為、遅くなったのではないか?と考えられます。(素人なので、あくまでも原因については推測ですが・・・)つまり、自動生成される画像の用途やサイズを理解なくして、多くの画像が自動生成されたからといって、一括削除することは適切ではありません。そこで、自動生成された画像がどこで使用されているのか?サイズはどうなのか?キチンと理解する為、画像をアップして、その実際を確認してみました。</p>




  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2" checked><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">アイキャッチ画像の準備</a><ol><li><a href="#toc2" tabindex="0">アイキャッチ画像の選択</a></li><li><a href="#toc3" tabindex="0">アイキャッチ画像のリサイズ</a></li><li><a href="#toc4" tabindex="0">アイキャッチ画像の圧縮</a></li></ol></li><li><a href="#toc5" tabindex="0">アイキャッチ画像の投稿</a><ol><li><a href="#toc6" tabindex="0">記事の投稿</a></li><li><a href="#toc7" tabindex="0">投稿画像の確認</a></li><li><a href="#toc8" tabindex="0">自動生成画像の説明</a></li></ol></li><li><a href="#toc9" tabindex="0">アイキャッチ画像の構成</a><ol><li><a href="#toc10" tabindex="0">Cocoonの設定確認</a></li><li><a href="#toc11" tabindex="0">Cocoonページの画像構成</a></li></ol></li><li><a href="#toc12" tabindex="0">アイキャッチ画像の用途・サイズ</a><ol><li><a href="#toc13" tabindex="0">各画像の用途とサイズ</a></li></ol></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">アイキャッチ画像の準備</span></h2>



<h3 class="wp-block-heading"><span id="toc2">アイキャッチ画像の選択</span></h3>



<p>アイキャッチ画像として使用する画像は、主に「Pixabay」や「写真AC」のサイトからダウンロードしています。</p>



<h4 class="wp-block-heading">画像の検索</h4>



<p>今回は、Pixabayから画像を取得します。</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="430" height="170" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic01.jpg" alt="" class="wp-image-12662" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic01.jpg 430w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic01-300x119.jpg 300w" sizes="(max-width: 430px) 100vw, 430px" /></figure>



<h4 class="wp-block-heading">画像の選択</h4>



<figure class="wp-block-image size-full"><img decoding="async" width="428" height="619" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic02.jpg" alt="" class="wp-image-12663" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic02.jpg 428w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic02-300x434.jpg 300w" sizes="(max-width: 428px) 100vw, 428px" /></figure>



<h4 class="wp-block-heading">画像のダウンロード</h4>



<p>画像のサイズを選択して、ダウンロードします。</p>



<figure class="wp-block-image size-full"><img decoding="async" width="427" height="370" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic03.jpg" alt="" class="wp-image-12664" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic03.jpg 427w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic03-300x260.jpg 300w" sizes="(max-width: 427px) 100vw, 427px" /></figure>



<h3 class="wp-block-heading"><span id="toc3">アイキャッチ画像のリサイズ</span></h3>



<p>アイキャッチ画像を800x533pxにリサイズします。Cocoonの場合は最低でも800x800px以上(推奨は1280x1280px)となっていますが、記事の先頭に表示するアイキャッチ画像が正方形というのがあまり好きではなく、pxもなるべく少なくしなければ画像の読み込みが遅くなりますので、幅を最低の800pxとして、その比率で高さを533pxとしています。無料画像のダウンロードサイトとして良く利用しています「写真AC」や「Pixabay」ではダウンロードのサイズが、1920x1280pxが多く、これをそのままダウンロードして、幅を800pxに変更すると比率で高さが533pxとなる為、トリミングすることなく簡単にリサイズできますので、そのまま使用しています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="509" height="533" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic04.jpg" alt="" class="wp-image-12665" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic04.jpg 509w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic04-500x524.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic04-300x314.jpg 300w" sizes="(max-width: 509px) 100vw, 509px" /></figure>



<h4 class="wp-block-heading">画像のリサイズ</h4>



<p>photoshopCS3で、幅を800pxと入力してリサイズします。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="422" height="884" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic05.jpg" alt="" class="wp-image-12666" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic05.jpg 422w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic05-300x628.jpg 300w" sizes="(max-width: 422px) 100vw, 422px" /></figure>



<h4 class="wp-block-heading">リサイズの結果</h4>



<p>800x533pxにリサイズされました。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="345" height="114" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic06.jpg" alt="" class="wp-image-12667" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic06.jpg 345w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic06-300x99.jpg 300w" sizes="(max-width: 345px) 100vw, 345px" /></figure>



<h3 class="wp-block-heading"><span id="toc4">アイキャッチ画像の圧縮</span></h3>



<p>リサイズされた画像をTINYJPGで、アイキャッチ画像を圧縮します。</p>



<h4 class="wp-block-heading">画像をドラッグ&amp;ドロップ</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="452" height="328" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic07.jpg" alt="" class="wp-image-12668" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic07.jpg 452w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic07-300x218.jpg 300w" sizes="(max-width: 452px) 100vw, 452px" /></figure>



<h4 class="wp-block-heading">圧縮の結果</h4>



<p>232KBから50.6KBに圧縮されました。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="394" height="114" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic08.jpg" alt="" class="wp-image-12669" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic08.jpg 394w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic08-300x87.jpg 300w" sizes="(max-width: 394px) 100vw, 394px" /></figure>



<h4 class="wp-block-heading">ファイル名の変更</h4>



<p>ブログ記事のアイキャッチ画像として投稿する為、ファイル名をwebp2-ec.jpgとします。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="183" height="113" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic09.jpg" alt="" class="wp-image-12670"/></figure>



<h2 class="wp-block-heading"><span id="toc5">アイキャッチ画像の投稿</span></h2>



<h3 class="wp-block-heading"><span id="toc6">記事の投稿</span></h3>



<p>準備した画像(webp2-ec.jpg)をアップロードして、記事の中でアイキャッチ画像として投稿します。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="502" height="766" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic11.jpg" alt="" class="wp-image-12671" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic11.jpg 502w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic11-500x763.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic11-300x458.jpg 300w" sizes="(max-width: 502px) 100vw, 502px" /></figure>



<h3 class="wp-block-heading"><span id="toc7">投稿画像の確認</span></h3>



<p>投稿記事のアイキャッチ画像として格納した画像(webp2-ec.jpg)から、どのようなサイズの画像が自動生成されているかを確認します。</p>



<h4 class="wp-block-heading">メディアライブラリで確認</h4>



<p>WordPressの管理画面では、元画像のみ確認できます。(自動生成された画像は、ここでは見れません)<br>注意:<br>メディアライブラリーには、Webp2-ec.jpgが、プラグインEWWW Image Optimizerで、WebPに変換されて50.6KBだったファイルサイズはさらに圧縮されて17.7KBとなっています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="581" height="374" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic12.jpg" alt="" class="wp-image-12672" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic12.jpg 581w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic12-500x322.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic12-300x193.jpg 300w" sizes="(max-width: 581px) 100vw, 581px" /></figure>



<h4 class="wp-block-heading">FTP(WinSCP)で確認</h4>



<p>次に、WinSCPで画像の格納されているuploadsフォルダの中を見て見ます。「EWWW Image Optimizer」でアップしたJPEGやPNGといった他フォーマットの画像を自動的にWebP画像形式のフォーマットで別途保存してくれます。が、その際のファイル名は元の拡張子の後ろに&#8221;webp&#8221;の拡張子を追加するものとなります。<br>例:sample.jpg → sample.jpg.webp<br>注意:<br>webpに対応していればwebpとして読み込み、対応していなければjpgとして読み込む様に制御されている様です。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="350" height="421" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic13.jpg" alt="" class="wp-image-12673" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic13.jpg 350w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic13-300x361.jpg 300w" sizes="(max-width: 350px) 100vw, 350px" /></figure>



<p>[ webpで配信されているかを確認 ]</p>



<p>Ccoonの記事ページで表示されている画像を右クリックして、「名前を付けて画像を保存」をクリックします。保存ファイルの拡張子が「webp」となっていればOKです。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="499" height="553" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic14.jpg" alt="" class="wp-image-12674" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic14.jpg 499w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic14-300x332.jpg 300w" sizes="(max-width: 499px) 100vw, 499px" /></figure>



<h3 class="wp-block-heading"><span id="toc8">自動生成画像の説明</span></h3>



<p>画像をアップロードした際に、Cocoonが自動生成している画像は、今回の場合は6種類となります。元画像(Webp2-ec.jpg)から、以下の6種類のjpgが生成されています。但し、それぞれの画像に、拡張子webpの画像がEWWW Image Optimizerによって生成されていますので、12種類(元画像を含むと14種類)となります。<br>※CocoonのRetina対応オプションは無効としています。</p>



<h4 class="wp-block-heading">Webp2-ec.jpg(800x533px)・・・アップロードした元画像</h4>



<h4 class="wp-block-heading">①WebP2-ec-768&#215;512.jpg</h4>



<p>WordPressV4.4から追加された機能で、メディア設定では制御できませんので、自動生成されます。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="280" height="177" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic15.jpg" alt="" class="wp-image-12675"/></figure>



<h4 class="wp-block-heading">サイズ固定の自動生成画像</h4>



<h5 class="wp-block-heading">②WebP2-ec-100&#215;100.jpg・・・管理画面記事リスト一覧のサムネイル</h5>



<h5 class="wp-block-heading">③WebP2-ec-150&#215;150.jpg・・・ページ送りナビ、Facebookバルーン</h5>



<h4 class="wp-block-heading">横幅が固定で高さが可変の自動生成画像</h4>



<h5 class="wp-block-heading">④WebP2-ec-120&#215;68.jpg・・・人気記事、ナビゲーション</h5>



<h5 class="wp-block-heading">⑤WebP2-ec-160&#215;90.jpg・・・関連記事デフォルト・関連記事4列</h5>



<h5 class="wp-block-heading">⑥WebP2-ec-320&#215;180.jpg・・・デフォルトサムネイル・関連記事3列</h5>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="402" height="170" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic16.jpg" alt="" class="wp-image-12676" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic16.jpg 402w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic16-300x127.jpg 300w" sizes="(max-width: 402px) 100vw, 402px" /></figure>



<p>注意:<br>カードタイプで、以下の4つのカードのいづれかを設定していれば、対応する画像が生成されますが、今回は選択していない為、生成されていません。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="383" height="138" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic17.jpg" alt="" class="wp-image-12677" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic17.jpg 383w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic17-300x108.jpg 300w" sizes="(max-width: 383px) 100vw, 383px" /></figure>



<p>※themes/cocoon-master/lib/settings.phpの中で、設定されています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="364" height="295" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic18.jpg" alt="" class="wp-image-12678" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic18.jpg 364w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic18-300x243.jpg 300w" sizes="(max-width: 364px) 100vw, 364px" /></figure>



<h2 class="wp-block-heading"><span id="toc9">アイキャッチ画像の構成</span></h2>



<p>投稿記事にアイキャッチ画像をアップして、元画像の他に、様々なサイズの画像が自動生成されていますので、それぞれにどのようなところで使用されているかを確認します。が、その前にWordPress、Cocoonの設定内容を確認しておきます。</p>



<h3 class="wp-block-heading"><span id="toc10">Cocoonの設定確認</span></h3>



<p>画像の自動生成は、「WordPressによる自動生成(ユーザー設定)」、「テーマによる自動生成(cocoon)」の大きく分類して2種類あります。ここでは、「WordPressによる自動生成(ユーザ設定)」のみ自動生成しないように設定しています。</p>



<h4 class="wp-block-heading">WordPressによる自動生成(ユーザー設定)</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="424" height="268" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic21.jpg" alt="" class="wp-image-12679" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic21.jpg 424w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic21-300x190.jpg 300w" sizes="(max-width: 424px) 100vw, 424px" /></figure>



<h4 class="wp-block-heading">テーマによる自動生成(cocoon)</h4>



<h5 class="wp-block-heading">メインカラム設定</h5>



<p>コンテンツ幅=800px、コンテンツ余白幅=29x、コンテンツ枠線幅=1pxとしています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="530" height="344" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic22.jpg" alt="" class="wp-image-12680" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic22.jpg 530w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic22-500x325.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic22-300x195.jpg 300w" sizes="(max-width: 530px) 100vw, 530px" /></figure>



<h5 class="wp-block-heading">サイトバー設定</h5>



<p>サイドバー幅=450px、サイドバー余白幅=19px、サイドバー枠線幅=1pxとしています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="643" height="478" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic23.jpg" alt="" class="wp-image-12681" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic23.jpg 643w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic23-500x372.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic23-300x223.jpg 300w" sizes="(max-width: 643px) 100vw, 643px" /></figure>



<h4 class="wp-block-heading">全体画像設定</h4>



<p>youtubeに合わせて、9:16(デフォルト)としています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="402" height="170" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic24.jpg" alt="" class="wp-image-12682" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic24.jpg 402w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic24-300x127.jpg 300w" sizes="(max-width: 402px) 100vw, 402px" /></figure>



<h3 class="wp-block-heading"><span id="toc11">Cocoonページの画像構成</span></h3>



<p>Cocoonの各ページで、どのようなアイキャッチ画像が使われているかを確認しておきます。</p>



<h4 class="wp-block-heading">トップ画面</h4>



<p>トップ画面では、「おすすめカード」、「ブログカード」、サイドの人気記事等に使われています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="643" height="766" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic25.jpg" alt="" class="wp-image-12683" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic25.jpg 643w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic25-500x596.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic25-300x357.jpg 300w" sizes="(max-width: 643px) 100vw, 643px" /></figure>



<h5 class="wp-block-heading">コンテンツ幅</h5>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="602" height="245" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic26.jpg" alt="" class="wp-image-12684" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic26.jpg 602w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic26-500x203.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic26-300x122.jpg 300w" sizes="(max-width: 602px) 100vw, 602px" /></figure>



<p>コンテンツ余白幅(29)+コンテンツ罫線幅(1)=30</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="611" height="231" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic27.jpg" alt="" class="wp-image-12685" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic27.jpg 611w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic27-500x189.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic27-300x113.jpg 300w" sizes="(max-width: 611px) 100vw, 611px" /></figure>



<h5 class="wp-block-heading">カラム間の幅</h5>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="412" height="186" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic28.jpg" alt="" class="wp-image-12686" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic28.jpg 412w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic28-300x135.jpg 300w" sizes="(max-width: 412px) 100vw, 412px" /></figure>



<h5 class="wp-block-heading">サイドバー幅</h5>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="335" height="248" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic29.jpg" alt="" class="wp-image-12687" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic29.jpg 335w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic29-300x222.jpg 300w" sizes="(max-width: 335px) 100vw, 335px" /></figure>



<p>サイドバー余白幅(19)+サイドバー罫線幅(1)=20</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="444" height="411" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic30.jpg" alt="" class="wp-image-12688" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic30.jpg 444w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic30-300x278.jpg 300w" sizes="(max-width: 444px) 100vw, 444px" /></figure>



<h4 class="wp-block-heading">投稿記事</h4>



<p>投稿記事では、記事トップの画像、関連記事画像、ページ送りナビ等に使われています。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="575" height="877" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic31.jpg" alt="" class="wp-image-12689" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic31.jpg 575w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic31-500x763.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic31-300x458.jpg 300w" sizes="(max-width: 575px) 100vw, 575px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="574" height="340" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic32.jpg" alt="" class="wp-image-12690" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic32.jpg 574w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic32-500x296.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic32-300x178.jpg 300w" sizes="(max-width: 574px) 100vw, 574px" /></figure>



<h2 class="wp-block-heading"><span id="toc12">アイキャッチ画像の用途・サイズ</span></h2>



<h3 class="wp-block-heading"><span id="toc13">各画像の用途とサイズ</span></h3>



<p>では、自動生成された画像のサイズを確認しながら、具体的に個々の画像を1つずつ確認してみます。</p>



<h4 class="wp-block-heading">320x180pxの画像(ブログカード)</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="560" height="361" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic41.jpg" alt="" class="wp-image-12691" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic41.jpg 560w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic41-500x322.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic41-300x193.jpg 300w" sizes="(max-width: 560px) 100vw, 560px" /></figure>



<h4 class="wp-block-heading">120x68pxの画像(人気記事)</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="412" height="399" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic42.jpg" alt="" class="wp-image-12692" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic42.jpg 412w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic42-300x291.jpg 300w" sizes="(max-width: 412px) 100vw, 412px" /></figure>



<h4 class="wp-block-heading">160x90pxの画像</h4>



<h5 class="wp-block-heading">関連記事</h5>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="587" height="388" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic43.jpg" alt="" class="wp-image-12693" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic43.jpg 587w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic43-500x330.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic43-300x198.jpg 300w" sizes="(max-width: 587px) 100vw, 587px" /></figure>



<h5 class="wp-block-heading">ページ送りナビ</h5>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="546" height="273" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic44.jpg" alt="" class="wp-image-12694" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic44.jpg 546w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic44-500x250.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic44-300x150.jpg 300w" sizes="(max-width: 546px) 100vw, 546px" /></figure>



<h4 class="wp-block-heading">おすすめカードの画像</h4>



<p>おすすめカードの画像は、いくつの画像かによって幅が計算されます。320×180サイズの画像が読み込まれて、比率で計算されます。<br>例1:5つのカードの時は、260x146pxの画像</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="533" height="419" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic45.jpg" alt="" class="wp-image-12695" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic45.jpg 533w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic45-500x393.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic45-300x236.jpg 300w" sizes="(max-width: 533px) 100vw, 533px" /></figure>



<p>例2:6つのカードの時は、213x120pxの画像</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="532" height="443" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic46.jpg" alt="" class="wp-image-12696" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic46.jpg 532w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic46-500x416.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic46-300x250.jpg 300w" sizes="(max-width: 532px) 100vw, 532px" /></figure>



<h4 class="wp-block-heading">投稿記事(元画像)</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="575" height="895" src="https://gungii.com/wp/wp-content/uploads/2021/09/genepic47.jpg" alt="" class="wp-image-12697" srcset="https://gungii.com/wp/wp-content/uploads/2021/09/genepic47.jpg 575w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic47-500x778.jpg 500w, https://gungii.com/wp/wp-content/uploads/2021/09/genepic47-300x467.jpg 300w" sizes="(max-width: 575px) 100vw, 575px" /></figure>



<p></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
