扩展程序图标上传到Chrome网上应用店后丢失 [英] Extension icons are missing once it is being uploaded to Chrome Web Store

查看:122
本文介绍了扩展程序图标上传到Chrome网上应用店后丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试上传我的第一个Google Chrome扩展程序,但是我遇到了一个奇怪的问题.

I'm trying to upload my first Google Chrome extension, but I have a strange issue.

我的清单文件如下:

{
  "manifest_version": 2,

  "name": "Chat About",
  "description": "Chat about the content of the web page you're currently visiting with other visitors.",
  "version": "0.0.1.1",

  "icons":
  {
    "16": "icon16.png",
    "32": "icon16.png",
    "48": "icon48.png",
    "128": "icon128.png"
  },

  "browser_action":
  {
    "default_icon": "icon.png",
    "default_popup": "popup.html"
  },
  "permissions":
  [
    "activeTab"
  ]
}

源目录的内容如下:

icon.png
icon128.png
icon16.png
icon32.png
icon48.png
manifest.json
popup.html
popup.js

出现解压缩的扩展程序图标,如下所示:

The unpacked extension icons appear, as shown here:

但是当我尝试将其上传到Chrome网上应用店时,图标丢失了,如下所示:

But as I'm trying to upload it to Chrome Web Store, the icons are missing, as shown here:

我找不到解决此问题的任何方法.我不知道这是怎么了.

I couldn't find any solution to this issue. I have no idea what's wrong here.

推荐答案

此图标分别在开发人员仪表板中上传.

This icon uploaded separately in the Developer Dashboard.

请注意,此图标应遵循以下规则绘制 (请参见提供图像):

Be noticed that this icon should be drawn with following rules (see Supplying Images):

实际图标尺寸应为96x96(用于正方形图标);每边另外16个像素应为透明填充,总计图像总大小为128x128.

The actual icon size should be 96x96 (for square icons); an additional 16 pixels per side should be transparent padding, adding up to 128x128 total image size.

更新#1:2020年6月

该设置在旧的仪表板中仍然可用. 您可以通过单击选择退出"来退出新的信息中心.左下角的链接:

The setting is still available in the old dashboard. You may go back from the new dashboard by clicking to "opt out" link in the bottom left corner:

这篇关于扩展程序图标上传到Chrome网上应用店后丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆