rss-funnel icon indicating copy to clipboard operation
rss-funnel copied to clipboard

Feed icon

Open uGeek opened this issue 1 year ago • 6 comments

You could add the icon variable In the configuration file, currently there is the title, description even the RSS type but when you subscribe to a Feed generated with the merge option it does not have an image.

uGeek avatar Mar 13 '24 18:03 uGeek

Sure, let me think about how to do it. For the time being, have you tried modifying the resulting feed with modify_feed?

Here's an example (suppose your feed format is rss, not atom):

      - modify_feed: |
          feed.image = {
            "description": null,
            "height": null,
            "link": "",
            "title": "",
            "url": "https://statics.ccma.cat/multimedia/jpg/6/4/1697466540346.jpg",
            "width": null
          }

shouya avatar Mar 14 '24 10:03 shouya

As I did more research on the topic, I found that the feed image isn't the same as the feed icon. It turns out there is no standard in how the feed's icon should be specified in the feed itself.

According to this stackoverflow answer, most feed readers will just load the icon using the favicon of the main site. This means setting feed.image may not be very effective.

The answer also offers an idea to get around the issue. Suppose you're making a feed for http://example.com, you can make sure the link field of the source is set to http://example.com. Then the feed reader may find the icon at http://example.com/favicon.ico.

shouya avatar Mar 15 '24 12:03 shouya

A long time ago I created the feed for both my blog and my podcast. Feed icon URL was here:

<image>
<url>https://ugeek.github.io/ugeek.png</url>
<title>uGeek Blog </title>
<link>https://ugeek.github.io/blog</link>
</image>

Here:

<image>
<url>https://ugeek.github.io/ugeek.png</url>

My feed in my case is:

<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>uGeek Blog </title>
<link>https://ugeek.github.io/blog</link>
<description>Blog de Tecnología, Android, GNU Linux, Servidores, y mucho más. Blog vinculado al Blog del Podcast de uGeek</description>
<image>
<url>https://ugeek.github.io/ugeek.png</url>
<title>uGeek Blog </title>
<link>https://ugeek.github.io/blog</link>
</image>
<language>es</language>

uGeek avatar Mar 16 '24 15:03 uGeek

According to the stackoverflow answer I linked, the <image> tag is not really interpreted by feed readers as the icon of the feed. The favicon of the website specified in <link> is instead used. Unfortunately, there is nothing we can do by changing the feed itself to make the feed reader use a specific icon.

The following measures are my suggested attempts to make the feed reader find the icon correctly.

First, I noticed that the favicon of https://ugeek.github.io seem broken. See https://github.com/uGeek/ugeek.github.io/blob/main/index.html#L20-L23. Could you try fix it and see if the icon is shown correctly?

If that still doesn't work, I suggest you to try to make https://ugeek.github.io/favicon.ico point to a valid favicon and see if that works.

shouya avatar Mar 16 '24 15:03 shouya

Therefore, being broken, the URL indicated on the tag is correct and it adopts that icon as correct. https://ugeek.github.io/ugeek.png

uGeek avatar Mar 16 '24 15:03 uGeek

But you're right. I just subscribed and the icon does not appear. So that tag is not valid.

uGeek avatar Mar 16 '24 15:03 uGeek