Skip to content

octree renders black pixels as transparent #11

@pixelsage

Description

@pixelsage

As long as setTransparent() isn't set to null, octree will render black pixels as transparent. For anyone else running into this issue, one workaround is to set the encoder to neuquant instead, which does not have this issue.

Bugged:
const encoder = new GIFEncoder(256, 256, 'octree', true);

Working:
const encoder = new GIFEncoder(256, 256, 'neuquant', true);

Caveat: In certain cases, neuquant colors will not be as accurate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions