Skip to content

Invert with light green produces muddy brown colours in beta branch #418

@edwardhorsford

Description

@edwardhorsford

I quite like the invert with light green option. Alas it seems to be broken in the beta branch with my test pdf. Most lines come out a muddy brown - where they display fine in the main branch.

I believe I have traced it (via Claude) to the fix in #402.

Beta branch

0px line weight 1px line weight
Image Image

Main branch

0px line weight 1px line weight
Image Image

I suspect this is related to the source data not being 100% black, but some shade of grey - unless over some threshold value it's not enough to get saturated?

Besides looking again at the fix in #402, I wonder about applying some kind of level/threshold filter so pixels over x% darkness are darkened even further? You'd lose shading in pdfs, but gain more contrast. I suspect that's probably a good tradeoff for patterns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions