问题
I'm trying to upload my first Google Chrome extension, but I have a strange issue.
My manifest file is as follows:
{
"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"
]
}
The content of the source directory is as follows:
icon.png
icon128.png
icon16.png
icon32.png
icon48.png
manifest.json
popup.html
popup.js
The unpacked extension icons appear, as shown here:
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.
回答1:
This icon uploaded separately in the Developer Dashboard.
Be noticed that this icon should be drawn with following rules (see Supplying Images):
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.
来源:https://stackoverflow.com/questions/45117279/extension-icons-are-missing-once-it-is-being-uploaded-to-chrome-web-store