# Topics that are only images have \[image\] as the meta description

**URL:** https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364
**Category:** Support
**Created:** [2015 年6 月 23 日 11:10 UTC](https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364 "2015-06-23T11:10:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2015 年6 月 23 日 11:10 UTC](https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364/1 "2015-06-23T11:10:06Z")

</div>

I’ve got this meta tag with a few `[image]` found in it and nothing more - it’s really useless:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/2/22f8cc2ab49e99ed8ac6165ad36750741e2dd485.png) 

Google Webmaster tool isn’t happy about it either:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/b/4bc7922341b6cfb2021c434c230fca85fffd86e8.png)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2015 年6 月 23 日 18:06 UTC](https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364/2 "2015-06-23T18:06:35Z")

</div>

Agreed, if the post is nothing but images and has no text content IMHO the meta description tag should either be not used or have an empty content attribute value

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018 年10 月 16 日 21:40 UTC](https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364/3 "2018-10-16T21:40:46Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018 年10 月 16 日 22:35 UTC](https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364/4 "2018-10-16T22:35:44Z")

</div>

I wonder about this, I have seen `[image]` as well, we should verify that the alt image text is used in the post excerpt extractor when possible (when it is specified). For example in a typical image upload..

 ![simmons](https://global.discourse-cdn.com/meta/original/3X/d/9/d9f013e57c65fbb8bef32318e3c05723a17accdb.gif)

Can you take this as a to-do @techAPJ, let’s verify the behavior is correct. The rendered HTML above is

`<img src="https://img.gif" alt="simmons" width="198" height="300">`

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2018 年10 月 17 日 09:27 UTC](https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364/6 "2018-10-17T09:27:53Z")

</div>

> [@codinghorror](#):
>
> we should verify that the alt image text is used in the post excerpt extractor when possible (when it is specified)

Verified that alt image text is used in post excerpt as per:

> <https://github.com/discourse/discourse/blob/acd1693dac1bff6ff50250d942134bc48a27ff14/lib/excerpt_parser.rb#L78>

The post just above as seen on your activity page:

 ![53](https://global.discourse-cdn.com/meta/original/3X/7/a/7ad947ec96b634032abf234eb05e713ff15af600.png)

Also, based on my local testing I noticed that in some cases we were showing blank meta description. Fixed that issue via:

[https://github.com/discourse/discourse/commit/42c405a8200f9e481bcd64a18beabed9a8dea8d4](https://github.com/discourse/discourse/commit/42c405a8200f9e481bcd64a18beabed9a8dea8d4)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018 年10 月 17 日 12:09 UTC](https://meta.discourse.org/t/topics-that-are-only-images-have-image-as-the-meta-description/30364/7 "2018-10-17T12:09:24Z")

</div>


