Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

background color not in colormap error #13

Open
@ehmicky

Description

@ehmicky

The following error is happening in some builds.

Error in file: public/static/0fcc4b193c9b78671c8ba9d2fdeaf48c/canva_pro_logo.gif
gifsicle:/tmp/5429c4b3-0087-46ef-99d5-82b31b1f4f55: background color not in colormap 
    /opt/buildhome/.netlify-build-plugins/node_modules/netlify-plugin-image-optim/index.js:29:30 async onPostBuild
    src/plugins/child/run.js:18:3 async Object.run
    src/plugins/child/main.js:38:38 async handleEvent
    src/plugins/ipc.js:97:9 async process.<anonymous>

The repository is private. The builds logs are not providing additional information unfortunately.

It looks like this error might be a user error. If this is the case, it might be good to wrap the imagemin() with a try/catch block and use utils.build.failBuild(). This method ensures that uncaught exceptions are reported as user errors instead of plugin bugs. More information can be found here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions