Package is invalid. Details: 'Could not decode image'

926 views
Skip to first unread message

pradeep bhutare

unread,
Sep 9, 2019, 12:23:39 AM9/9/19
to Chromium Extensions
Hello, I am trying to upload an extension to the chrome store and I am getting the following error message when I try to install the extension:

Package is invalid. Details: 'Could not decode image: 'Original_png.png''.

The unpacked version works.
But trying to download from the chrome store does not.
Please help! Thanks in advance!

Here is what my manifest.json looks like:

{
  "manifest_version": 2,
  "name": "AudioFont",
  "version": "1.1.0",
  "icons": {
   "16": "images/Original.png",
   "32": "images/Original.png"
},
  "browser_action": {
              "default_icon": "images/Original_png.png",
              "default_popup":"popup.html"
                },


    "background": {
      "scripts": ["js_jquery-3.2.1.min.js","background.js"],
      "persistent": true
  },

  "permissions": [
    "*://*/*",
    "tabs",
    "cookies",
    "activeTab"

  ]
}

audio_font.png

Simeon Vincent

unread,
Sep 9, 2019, 10:41:32 PM9/9/19
to pradeep bhutare, Chromium Extensions
One of my engineering colleagues lookef into this earlier today. It appears like the problem is that the asset Original_png.png (I believe that's the file name, I'm going from memory) is too large. Normally generating a CRX compresses some arrests, but it seems CWS isn't currently don't that.

You can see this first hand if you compare the asset inside the CRX file you get from the Web Store to a CRX file you manually create yourself in Chrome: the CWS version of the image will be 4k x 4x but the manually packaged one will 1k x 1k. 

I'll follow up with CWS in this tomorrow, but for the moment you should be able to work can work around this bug by shrinking the image before you publish.

Simeon - @dotproto
Extensions Developer Advocate

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/971dc0f1-6055-43e0-ae67-54b794f0f740%40chromium.org.
Reply all
Reply to author
Forward
0 new messages