Mengatasi Warning Webmaster Image Size Smaller Than Recommended Size

Baru-baru ini muncul notifikasi dari Google Webmaster atau Search Console untuk blog-blog AMP dengan warning ukuran gambar lebih kecil dari ukuran yang direkomendasikan atau dalam Bahasa Inggris image size smaller than recommended size.

Warning ini tentang data terstruktur dalam AMP mengacu pada gambar yang lebih kecil dari ukuran yang disarankan. Ini dapat mencegah halaman muncul dengan semua fitur yang berhubungan dengan AMP di Google Search, dan juga dapat mencegah kartu Discover blog muncul dengan gambar besar (ini dapat menyebabkan penurunan lalu lintas situs web dan keterlibatan pengguna).

Namun ketika dicek di search console, Google tidak memberikan keterangan lebih tentang gambar mana yang menyebabkan error. Tentu saja ini membuat bingung, bagian mana yang harus dibetulkan.

Untuk itu saya terus menelusuri semua link yang diberikan tentang warning ini. Nah untuk memperbaikinya, kita harus menggunakan gambar yang lebih besar sesuai dengan pedoman Google.
Untuk struktur data schema.org untuk tipe Article, NewsArticle, dan BlogPosting, untuk item ImageObject harus menggunakan gambar besar, setidaknya lebar gambar minimum 1200px dengan rasio 16:9, 4:3, atau 1:1.
Jadi untuk mengatasi masalah ini, pertama kita harus membuat gambar untuk thumbnail setiap post (gambar dengan tag noscript) dengan rasio yang saya sebutkan tadi di atas, misal 1280x720 untuk rasio 16:9 atau 1200x900 untuk rasio 4:3 atau gambar persegi 1:1 yaitu 1200x1200.
Kemudian langkah kedua silahkan masuk ke edit HTML lalu cari kode <b:includable id='post' var='post'>
Di sebelah bawah kode tadi cari kode berikut, atau kode yang mirip seperti kode berikut (mungkin akan berbeda tergantung pembuat template AMP).

<b:if cond='data:post.firstImageUrl'>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta expr:content='resizeImage(data:post.firstImageUrl,800,&quot;1:1&quot;)' itemprop='url'/>

  <meta content='800' itemprop='width'/>

  <meta content='800' itemprop='height'/>

  </div>

<b:else/>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta content='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCZ0Qt-QR6c7xbGIhSsLSD2HbQCIuj1LY9jlQ5IZLyk6fR6Nf2uyDdW08a2LtF2azAf5heFkogHLuLWP0wfZknvVRjulDijSTpoVvMKwim3e6E4sst6j0jE2Z5ILtYcqCucGhrA3WZGbA/s800-c/no-thumbnail.jpg' itemprop='url'/>

  <meta content='800' itemprop='width'/>

  <meta content='800' itemprop='height'/>

  </div>

    </b:if>
Kemudian silahkan ganti dengan kode berikut:
1. Untuk thumbnail 1280x720 untuk rasio 16:9.

<b:if cond='data:post.firstImageUrl'>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta expr:content='resizeImage(data:post.firstImageUrl,1280,&quot;16:9&quot;)' itemprop='url'/>

  <meta content='1280' itemprop='width'/>

  <meta content='720' itemprop='height'/>

  </div>

<b:else/>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta content='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHeeOhnqpq6q6XwKqZg3P5n5vhNUWG7uxYCKE_xh7tOA5IIEzFjea1PNXVUQGmo5TPn_rRqhiMcOyQHT-H_kQnL9YMqmK6AGHuCmB2D5HhD8W9U-1tWSI-M442zLURNX9RNqkvCy0HM0Q/s1280/no-thumbnail.jpg' itemprop='url'/>

  <meta content='1280' itemprop='width'/>

  <meta content='720' itemprop='height'/>

  </div>

    </b:if>
2. Untuk thumbnail 1200x900 untuk rasio 4:3.

<b:if cond='data:post.firstImageUrl'>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta expr:content='resizeImage(data:post.firstImageUrl,1200,&quot;4:3&quot;)' itemprop='url'/>

  <meta content='1200' itemprop='width'/>

  <meta content='900' itemprop='height'/>

  </div>

<b:else/>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta content='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCftFFPpgdWrLOnRb3iUqbQSMXKeGDhIGHWUiorWc3mLN1MFoW6EOO6nrjpOXUExHiI8tMEHBwXHzKs_clMRK83S4d02zXZynIOuvykhCXIxYDdmeQCXJvrDQPb8vmUNdfj1d7ZD_wXhg/s1200/no-thumbnail_1.jpg' itemprop='url'/>

  <meta content='1200' itemprop='width'/>

  <meta content='900' itemprop='height'/>

  </div>

    </b:if>
3. Untuk thumbnail persegi 1200x1200 untuk rasio 1:1.

<b:if cond='data:post.firstImageUrl'>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta expr:content='resizeImage(data:post.firstImageUrl,1200,&quot;1:1&quot;)' itemprop='url'/>

  <meta content='1200' itemprop='width'/>

  <meta content='1200' itemprop='height'/>

  </div>

<b:else/>

<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>

  <meta content='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5pn_d-sex3WnpR1p9IU0cHetD_YBWJjBScs63tG-rwgXWZBc53fhRQU5hfMfwxt6bbW4Fi6h5yYWK8Zk9qKZo_MnoBAA8PMA0fjFrTC71FxdQDn5Kxlp0d6gGm0dDJtMgqfphGzVQafs/s1600/no-thumbnail_2.jpg' itemprop='url'/>

  <meta content='1200' itemprop='width'/>

  <meta content='1200' itemprop='height'/>

  </div>

    </b:if>
Setelah itu silahkan coba validasi warning di search console, semoga berhasil.