# Retina image inline attachments

**URL:** <https://meta.discourse.org/t/retina-image-inline-attachments/12745>\
**Category:** Feature\
**Created:** [16 Febbraio 2014, 10:46am UTC](https://meta.discourse.org/t/retina-image-inline-attachments/12745 "2014-02-16T10:46:56Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [3 Ottobre 2018, 9:32am UTC](https://meta.discourse.org/t/retina-image-inline-attachments/12745/11 "2018-10-03T09:32:49Z")

</div>

Hmm so it generates

```
<img 
  src="//xxx/optimized/3X/2/2/guid_1_521x500.png" 
  alt="image" 
  width="521" 
  height="500" 
  srcset="//xxx/optimized/3X/2/2/guid_1_521x500.png, 
          //xxx/optimized/3X/2/2/guid_1_781x750.png 1.5x, 
          //xxx/optimized/3X/2/2/guid_1_1042x1000.png 2.0x"
>

```

I noticed the srcset URLs in the output sometimes start with `//` and sometimes `https://` .. is that intentional?

It looks like you can use `2x` instead of `2.0x` to save two bytes there, [per the documentation on srcset](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images).

---

_[View the full topic](https://meta.discourse.org/t/retina-image-inline-attachments/12745)._
