Skip to content

Commit 05c6de4

Browse files
committed
Add auto enhance
1 parent b172a3f commit 05c6de4

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

docker/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ RUN apt-get update \
4141
gfortran \
4242
libopencv-dev \
4343
curl \
44-
zstd
44+
zstd \
45+
dlib \
46+
pyamg
4547

4648
RUN pip3 install scikit-image opencv-python numpy Pillow --break-system-packages
4749

options/processing_options.go

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ type DitherOptions struct {
7474
SoftProof bool
7575
Clamp bool
7676
HullProject bool
77+
AutoEnhance bool
7778
LUTFile string
7879
LUTBlue bool
7980
SaturationScale float64
@@ -760,6 +761,8 @@ func applyDitherOption(po *ProcessingOptions, args []string) error {
760761
po.Dither.Clamp = true
761762
case "hp":
762763
po.Dither.HullProject = true
764+
case "ae":
765+
po.Dither.AutoEnhance = true
763766
case "lb":
764767
po.Dither.LUTBlue = true
765768
case "nc":

plugins/pushd-dither

processing/dither.go

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ func shellOutDither(inFile string, po *options.ProcessingOptions) error {
200200
if po.Dither.HullProject {
201201
cmdArgs = append(cmdArgs, "--hull-project")
202202
}
203+
if po.Dither.AutoEnhance {
204+
cmdArgs = append(cmdArgs, "--auto-enhance")
205+
}
203206
if len(po.Dither.LUTFile) > 0 {
204207
cmdArgs = append(cmdArgs, "--lut", fmt.Sprintf("lut_dither/%s.npy", po.Dither.LUTFile))
205208
// specifying the precomputed hue-sat file is a speed optimization

0 commit comments

Comments
 (0)