Skip to content

Ghostscript (gstoraster): add halftone gamma value#161

Merged
tillkamppeter merged 2 commits into
OpenPrinting:masterfrom
ValdikSS:master-new-halftone-2
Jun 23, 2026
Merged

Ghostscript (gstoraster): add halftone gamma value#161
tillkamppeter merged 2 commits into
OpenPrinting:masterfrom
ValdikSS:master-new-halftone-2

Conversation

@ValdikSS

Copy link
Copy Markdown
Member

Ghostscript filters (gsto...): add halftone gamma value

halftone-type=spot[-frequency][-angle][-dotshape][-gamma]
halftone-type=genordered[-frequency][-angle][-dotshape][-gamma]

Gamma is a fraction of exponent value, 1-99, where 99 covers
almost all levels and 1 produces very light faint image.

gamma 80 = pixel ^ 0.80

ValdikSS added 2 commits June 23, 2026 13:50
By default, Ghostscript applies 0.8 exponent as a gamma curve, which
makes levels a bit washed out.
Remove this gamma curve by default, as it's done for genordered.
halftone-type=spot[-frequency][-angle][-dotshape][-gamma]
halftone-type=genordered[-frequency][-angle][-dotshape][-gamma]

Gamma is a fraction of exponent value, 1-99, where 99 covers
almost all levels and 1 produces very light faint image.

gamma 80 = pixel ^ 0.80
@ValdikSS ValdikSS marked this pull request as draft June 23, 2026 11:27
@ValdikSS ValdikSS marked this pull request as ready for review June 23, 2026 11:30
@tillkamppeter tillkamppeter merged commit e8bc8c7 into OpenPrinting:master Jun 23, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants