我正在为Gmail的“促销”标签找到合适的徽标尺寸。 出于某种原因,我使用的徽标在android上效果很好,但在iPhone上已放大。
iPhone上的徽标示例:
Android上的徽标示例:
谢谢!
答案 0 :(得分:1)
虽然没有建议的Google的“促销”标签徽标大小规格,但所有示例均使用48x48px徽标。
“促销”标签的所有最佳做法在Best Practices页上给出。对于徽标,它们仅指定协议而不是图像大小:
徽标URL
请确保使用https(而非http)URL。此徽标选择仅显示在电子邮件预览中。
通过查看Google提供的示例,您可以看到每个人都使用this示例图片,其尺寸为48x48px:
在Get started页上:
// WARNING: Before sending email, either point the logo
// at your own image or delete the logo annotation.
//
// If showing a logo, we recommend using an https URL.
// It's not a requirement today, but may be in the future.
"logo": "https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png"
在Troubleshooting页上:
<div itemscope itemtype="http://schema.org/Organization">
<meta itemprop="logo" content="https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png" />
</div>
和:
{
"@context": "http://schema.org/",
"@type": "PromotionCard",
"logo": "https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png"
}
因此,可以安全地假定,PNG格式的48x48大小的徽标足以用作“促销”标签的徽标。
我希望这对您有帮助!