Skip to content

Add dither operation #3010

@jcupitt

Description

@jcupitt

Discussed in #3008

Originally posted by pepijndevos August 25, 2022
I am trying to make an 1 bit per pixel PNG image, but I want the colors to be pure black and white. When setting bit depth to 1, it either uses a palette that may contain grayscales, which looks really bad when tiled, or it does thresholding without dithering, which is also suboptimal.

image

So what I'd like to be able to do is either specify a fixed palette, or do dithering without using a palette at all, but I've been told by the sharp people that libvips can't do this.

lovell/sharp#3322

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions