Chrome扩展程序开发期间的图标有几个问题 [英] Several problems with icons during Chrome Extension development

查看:296
本文介绍了Chrome扩展程序开发期间的图标有几个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



1问题



如果我将这个图标声明添加到我的清单中:


 图标:{
16:images / icon16.png,
48:images / icon48.png,
128:images / icon128.png
},

然后,当我通过Load unpacked extensions ...加载Extension时,它不会显示徽标

但是,如果您尝试删除它,它确实显示
< img src =https://i.stack.imgur.com/rjO1P.pngalt =在这里输入图片描述>



AND!如果我从表格中删除48行,它会立即开始显示。也许是因为我使用Chrome Beta(版本28.0.1500.20测试版),或者是因为我做错了什么。

秒问题



关于网上应用店的图标。
我有很好的128x128图标,但由于某种原因,它在几个地方没有用于HI-RES。
图标如下:



但是那些看起来非常糟糕


同样在最后的截图中,它将我的里面的商标拼图图标。我看到很多其他的插件,它没有把它放在这里。



所以我想我的问题如下:我应该提供什么图标才能拥有它在所有地方看起来都不错? 关闭 chrome:// extensions / 选项卡,然后重新打开它。这可能会解决这个问题(我经历过这个bug几次)

  • 在详细信息页面上,只有 apps 已完整显示。 所有扩展 都显示在Chrome网络中的一个谜题中如果您希望在搜索结果中获得不同的图片,请在信息中心上传一张宣传图片。 有关详细信息,请参阅此答案



  • It's very strange.

    1 problem

    If I add this icon declaration to my manifest:

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

    Then, when I add Extension through "Load unpacked extensions ... " it doesn't show logo

    But if you try to delete it, it does show

    AND! If I delete "48" line from manifect, it starts showing it right away. Maybe it's because I use Chrome Beta (Version 28.0.1500.20 beta) or maybe because I do something wrong.

    Seconds problem

    Is about icon on Web Store. I have good 128x128 icon but for some reason in several places it doesn't used in HI-res. Icon is the following:

    But those looks very bad

    Also on the last screenshot it puts my logo inside Puzzle icon. I saw many other plugins where it doesn't put it like this.

    So I guess my question is following: What icon sized should I provide to have it looks nice in all places?

    解决方案

    1. Close the chrome://extensions/ tab, and re-open it. This may fix the issue (I've experienced this bug a couple of times)
    2. On the details page, only icons of apps are fully shown. All extensions are displayed within a puzzle in the Chrome Web Store.

      If you want to get a different picture at the search results, upload a promotional image at the dashboard. See this answer for details.

    这篇关于Chrome扩展程序开发期间的图标有几个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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