{"id":486,"date":"2014-03-28T17:39:21","date_gmt":"2014-03-28T17:39:21","guid":{"rendered":"http:\/\/freshinbox.com\/blog\/?p=486"},"modified":"2014-04-10T10:43:52","modified_gmt":"2014-04-10T10:43:52","slug":"why-your-email-may-be-missing-a-featured-image-in-the-gmail-grid-view","status":"publish","type":"post","link":"https:\/\/freshinbox.com\/blog\/why-your-email-may-be-missing-a-featured-image-in-the-gmail-grid-view\/","title":{"rendered":"Why Your Email May be Missing a Featured Image in the Gmail Grid View [Updated]"},"content":{"rendered":"<p><b>Updated:<\/b> Added information on responsive designs (4\/10\/2014).<\/p>\n<p>Gmail launched <a href=\"http:\/\/gmailblog.blogspot.com\/2014\/03\/a-new-more-visual-way-to-view-your.html\" target=\"_blank\">Grid View<\/a> for the Promotions Tab two days ago that featured listed emails in a grid view like a Pinterest pinboard.<\/p>\n<p>One thing caught my eyes immediately. A fair number of emails did not have a featured image even though there were fairly large images in the content of the email (like the email from REI in the image below).<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/gmail-grid3.jpg\" alt=\"gmail-grid3\" width=\"450\" height=\"341\"  \/><\/p>\n<p>I analyzed many of the emails that failed to display a featured image and have identified a set of common issues as well as their potential fixes.<BR><BR><\/p>\n<h4>Gmail&#8217;s Featured Image Code<\/h4>\n<p>Before we delve into the various causes, Google has provided a simple way to designate a featured image for your email. It only requires a short snippet of code. You can visit <a href=\"https:\/\/developers.google.com\/gmail\/actions\/reference\/offer\" target=\"_blank\">this link to learn more<\/a>.  <\/p>\n<p>Although Gmail recommends your featured image be 580&#215;400 pixels, you do NOT need to specify an image that is exactly 580&#215;400. You can use any image that is at least 233&#215;161 pixels including an image that is already in your email (ie. your hero). This allows you to tell Gmail &#8220;hey, use THIS image&#8221;.<\/p>\n<p><b>Here&#8217;s a <a href=\"https:\/\/freshinbox.com\/tools\/gmail-featured-image\/\">tool that allows you to test out this feature<\/a>.<\/b><\/p>\n<p>However if adding this piece of code into your email is not feasible, lets look at reasons why featured images aren&#8217;t showing for your email&#8230;<BR><BR><\/p>\n<h4>1) Missing Width and Height Properties<\/h4>\n<p>Gmail selects an image in an email based on both the height and width specified in the HTML img tag. If the width and height attributes are missing, Gmail randomly picks an image and if this image is deemed too small when Gmail retrieves it (smaller than 233&#215;161), a featured image is not displayed for your email.<\/p>\n<p>Take this Swarovski email. Gmail did not display a featured image for the email even though there was a fairly big hero in the email.<\/p>\n<p><a href=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/swarovski-email.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/swarovski-email.jpg\" alt=\"swarovski-email\" width=\"450\" height=\"443\"  \/><\/a><\/p>\n<p>When I looked at the source of the email I noticed that the hero had a width dimension but not a height:<\/p>\n<pre class=\"lang:default decode:true \" >&lt;img src=\"http:\/\/newsletter.swarovski-newsletter.com\/...the_earring_edit_en_row.jpg\" \r\nwidth=\"612\" border=\"0\" style=\"display:block\"&gt;<\/pre>\n<p>By adding in the proper height dimension, I was able to get Gmail to render a featured image for the email.<\/p>\n<p>Responsive designed emails are frequently coded with a width but not a height attribute for images to allow the height to scale along with the width of the image. Adding a height attribute on images can still work with responsive designs as long as the CSS property &#8220;height: auto;&#8221; is set either inline or in the media query.<\/p>\n<p>What if you already set width and height attributes and images are STILL not showing up? Follow me into the rabbit hole my friends&#8230;<BR><BR><\/p>\n<h4>2) Wider images are preferred as long as it is under 600px wide<\/h4>\n<p>From my tests, Gmail selects the widest images as long as they are 599px and narrower and at least 100px tall (see next section about images under 161px tall).<\/p>\n<p>However for images 600px and wider, Gmail appears to require that the image be at least a certain height (numbers range from 450px to 600px) or else Gmail selects a narrower image in the email. This part is still a bit confusing.<\/p>\n<p>See the Saks email below. The hero image was set at 640&#215;475. Initially Gmail did not display any image for the email in Grid View. Increasing the height of the image to 515px fixed it.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/saks-gmail.jpg\" alt=\"saks-gmail\" width=\"551\" height=\"497\" class=\"alignnone size-full wp-image-537\" srcset=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/saks-gmail.jpg 551w, https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/saks-gmail-300x270.jpg 300w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><BR><BR><\/p>\n<h4>3) Be careful of images between 100px and 161px tall above your hero.<\/h4>\n<p>Banners are often placed above heroes. However if they are between 100px and 161px tall your email might run into some issues. Here I believe there&#8217;s a bug in Gmail&#8217;s selection code* (I&#8217;ve reached out to Google so stay tuned) but having images that are between those heights may cause your hero not to be featured in Grid View.<\/p>\n<p>See the American Beagle, err Eagle email below. The banner above the hero was initially set at 560&#215;117. Gmail did not feature an image for that email. Shortening the banner to 560&#215;99, fixes it.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/ae-gmail.jpg\" alt=\"ae-gmail\" width=\"576\" height=\"498\" class=\"alignnone size-full wp-image-538\" srcset=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/ae-gmail.jpg 576w, https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/ae-gmail-300x259.jpg 300w\" sizes=\"(max-width: 576px) 100vw, 576px\" \/><BR><BR><\/p>\n<h4>Image Selection<\/h4>\n<p>Sometimes Gmail seems to feature less prominent images in the email, such as this one from Sams. The Skittles image was featured when there was a much more prominent hero higher up in the email. <\/p>\n<p><a href=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/sams-email.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/03\/sams-email.jpg\" alt=\"sams-email\" width=\"450\" height=\"279\"  \/><\/a><\/p>\n<p>When we look at the source, it becomes obvious why. The hero did not have a specific width and height attribute with the width of the hero image set at &#8220;100%&#8221;. The Skittles image however did have a specific width and height attribute and that was probably why Gmail selected that image instead. <\/p>\n<p>Below is the img tag for the main hero: <\/p>\n<pre class=\"lang:default decode:true \" >&lt;img border=\"0\" src=\"http:\/\/img.delivery.net\/...-pov1image.jpg\" \r\nstyle=\"max-width:640px;height:auto;max-height:229px;width:100%;display:block;\" \r\nwidth=\"100%\"&gt;<\/pre>\n<p><BR><\/p>\n<h4>Takeaway<\/h4>\n<p>I hope that this article has helped you figure out any issues you&#8217;ve come across getting your images to display in Gmail&#8217;s Grid View. Since Gmail considers Grid View a &#8220;field trial&#8221; there&#8217;s a good chance whats covered here will change with time and I&#8217;ll update this post when necessary.<\/p>\n<p>As a recap if Gmail is not showing an image for your emails in Grid View: <\/p>\n<p>1) Use the <a href=\"https:\/\/freshinbox.com\/tools\/gmail-featured-image\/\">Featured Image code<\/a> to designate a featured image for your email.<\/p>\n<p>2) Ensure you have at least one image in your email that is at least 233 pixels wide and 161 pixels high (233&#215;161).<\/p>\n<p>3) Ensure you set the width and height attributes on your hero image.<\/p>\n<p>4) Figure out if your images match some of the quirky restrictions and see if you can work around them.<\/p>\n<p>5) Shoot me an email to justin &#8216;at&#8217; freshinbox.com with FreshInbox in the subject line (limited time offer)<br \/>\n<BR><BR><BR><\/p>\n<p><em style=\"color:#777777;\">* Regarding images between 100px and 161px tall. It appears that Gmail&#8217;s image selection code selects any image that is at least 100&#215;100. However from my tests, Gmail&#8217;s Featured Image &#8220;capture&#8221; application requires images to be at least 233&#215;161. Therefore I&#8217;m assuming if you have an image that is say 580&#215;110, Gmail selects that image, sends it to the &#8220;capture&#8221; application and it barfs because the image is not tall enough and you get no picture. <\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gmail launched Grid View two days ago that featured listed emails in a grid view like a Pinterest pinboard.<br \/>\nOne thing caught my eyes immediately. A fair number of emails did not have a featured image even though there were fairly large images in the content of the email.<BR><BR><\/p>\n<p><b>Update:<\/b> This article has been updated with the latest findings as of 4\/10\/2014.<\/p>\n","protected":false},"author":2,"featured_media":500,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,19,28],"tags":[],"_links":{"self":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/486"}],"collection":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":43,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/486\/revisions\/525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media\/500"}],"wp:attachment":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media?parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/categories?post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/tags?post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}