image - Atom 1.0 联合供稿图标和 Logo 尺寸

标签 image atom-feed feed image-size

Atom 1.0 规范对 feed 中的图标和 Logo 元素有以下几行内容:

icon - The image SHOULD have an aspect ratio of one (horizontal) to one (vertical) and SHOULD be suitable for presentation at a small size.

logo - The image SHOULD have an aspect ratio of 2 (horizontal) to 1 (vertical).

大多数 Atom feed 阅读器可以使用的图标和 Logo 图像的建议尺寸是多少?

最佳答案

我发现一篇博客文章专门讨论了您的问题 http://snook.ca/archives/rss/add_logo_to_feed/ :

The Atom specification details two separate XML elements that can contain a URL to an image: icon and logo. For icon, it indicates that the image should have a 1:1 ratio and should be appropriate for small sizes. Not much more is spelled out, such as appropriate image types.

...进一步...

Now, the RSS specification is a little more specific when it comes to possible image sizes.

Maximum value for width is 144, default value is 88. Maximum value for height is 400, default value is 31.

由于提要阅读器可能会同时显示 ATOM 和 RSS 提要,因此这是他们期望的大致图像大小。因此,我查看了 FlickR ATOM feed ( http://api.flickr.com/services/feeds/groups_discuss.gne?id=34427469792@N01&lang=en-us&format=atom ),它使用 48px 的方形图标。也许你可以坚持为你的图标。但它不提供 Logo 。

关于image - Atom 1.0 联合供稿图标和 Logo 尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29797643/

相关文章:

java - 当我导出 Java 项目时,我的图形不会显示

php - 如何从 MySQL 数据库中存储和检索图像并使用 Php 在 html 中显示它?

java - 两条腿的 OAuth 和 Gmail Atom feed

javascript - 响应中的日期格式

C# XmlReader 冒号问题(命名空间)

javascript - 如何使用 axios HTTP 客户端在 node.js 中使用 ContextualWeb News API?

java - 如何修复 webstart/JNLP 中的锯齿状图标外观?

c++ - 复制 Simd::View 的一部分

Apple新闻格式的RSS Feed

html - 如何告诉 Web 浏览器有关 Atom 提要的信息