<p>If you want to just include the URL of the image in the feed so it can be picked up by Feed Me on another site, I believe you can use the <code>&lt;media:thumbnail&gt;</code> tag:</p>
<pre><code>&lt;item&gt;
    &lt;title&gt;{{ entry.title }}&lt;/title&gt;
    &lt;link&gt;{{ entry.url }}&lt;/link&gt;
    ...
    &lt;media:thumbnail url=&quot;{{ entry.myImageField.one().url }}&quot; /&gt;
&lt;/item&gt;
</code></pre>

CC BY-SA 4.0
2023-09-04T15:15:55.183Z
Thanks guys that got me sorted
bhackett
CC BY-SA 4.0
2023-09-01T15:33:21.307Z
2023-09-04T07:53:01.407Z
2023-09-04T07:53:01.407Z
Martin Spain
<p>If you are using the <a href="https://craftcms.com/knowledge-base/rss-and-atom-feeds" rel="nofollow noreferrer">template that Craft suggests</a>.
Then you can add the image into the  tag.
In my case the assets field is named &quot;titleImage&quot;. I have a transform defined as &quot;gallery&quot; to resize the image down to a sensible size. I'm not sure if you need to include the width/height/alt of the image but I do in case it's useful to the feed reader. I'm not sure if different readers have different specs. This works in the Mac app NetNewsWire.</p>
<pre><code>&lt;description&gt;
    &lt;![CDATA[
    {% set image = entry.titleImage[0] ?? null %}
    {% if image|length %}
        &lt;img src=&quot;{{ image.url('gallery') }}&quot; alt=&quot;{{ image.caption }}&quot; width=&quot;{{ image.getWidth('gallery') }}&quot; height=&quot;{{ image.getHeight('gallery') }}&quot;&gt;
    {% endif %}
    {{ entry.summary }}
    ]]&gt;
&lt;/description&gt;
</code></pre>

CC BY-SA 4.0
2023-08-31T14:09:38.750Z
2023-08-31T14:09:38.750Z
Paul Frost
<p>I am creating a RSS feed from a news channel and I have gotten it all working except for the news story image which is an assets field. I want to pass the url of the image so I can pull it in via feed me into another craft site. I have looked and I can't find any examples of this working anywhere. Thanks for any help</p>

<assets><rss>
Adding an assets image URL field to an RSS feed
# Adding an assets image URL field to an RSS feed

(Asked by: username_0 on 2023-08-31)

I am creating a RSS feed from a news channel and I have gotten it all working except for the news story image which is an assets field. I want to pass the url of the image so I can pull it in via feed me into another craft site. I have looked and I can't find any examples of this working anywhere. Thanks for any help

**Tags:** assets, rss


---

## 2 answers

### Answer by username_1 on 2023-09-01. Score: 1 | Accepted answer

If you want to just include the URL of the image in the feed so it can be picked up by Feed Me on another site, I believe you can use the  tag:

    {{ entry.title }}
    {{ entry.url }}
    ...

> **Comments:**
> **username_0**: Thanks guys that got me sorted  

---

### Answer by username_2 on 2023-08-31. Score: 1

If you are using the template that Craft suggests.
Then you can add the image into the  tag.
In my case the assets field is named "titleImage". I have a transform defined as "gallery" to resize the image down to a sensible size. I'm not sure if you need to include the width/height/alt of the image but I do in case it's useful to the feed reader. I'm not sure if different readers have different specs. This works in the Mac app NetNewsWire.

    
    {% set image = entry.titleImage[0] ?? null %}
    {% if image|length %}
        <img src="{{ image.url('gallery') }}" alt="{{ image.caption }}" width="{{ image.getWidth('gallery') }}" height="{{ image.getHeight('gallery') }}">
    {% endif %}
    {{ entry.summary }}


---

