Skip to content

Commit 094730a

Browse files
committed
fix packages and add opts4
1 parent 05c6de4 commit 094730a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

docker/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ RUN apt-get update \
4242
libopencv-dev \
4343
curl \
4444
zstd \
45-
dlib \
46-
pyamg
45+
build-essential \
46+
cmake
4747

48-
RUN pip3 install scikit-image opencv-python numpy Pillow --break-system-packages
48+
RUN pip3 install scikit-image==0.22.0 scipy==1.11.4 opencv-python numpy Pillow dlib==19.24.4 pyamg --break-system-packages
4949

5050
COPY plugins/pushd-dither /opt/pushd-dither/
5151

options/processing_options.go

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ type DitherOptions struct {
8383
OptionsSet01 bool // shorthand sets
8484
OptionsSet02 bool
8585
OptionsSet03 bool
86+
OptionsSet04 bool
8687
OptionsSetCam16 bool
8788
OptionsSetHpminde bool
8889
OptionsSetScam bool
@@ -779,6 +780,8 @@ func applyDitherOption(po *ProcessingOptions, args []string) error {
779780
po.Dither.OptionsSet02 = true // shorthand for a set of options starting with the 20240510 release
780781
case "opts03":
781782
po.Dither.OptionsSet03 = true // shorthand for a set of options starting with the 20240702 release
783+
case "opts04":
784+
po.Dither.OptionsSet04 = true // shorthand for a set of options starting with the 20240809 release
782785
case "optscam16":
783786
po.Dither.OptionsSetCam16 = true
784787
case "optshpminde":

processing/dither.go

+9
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ func shellOutDither(inFile string, po *options.ProcessingOptions) error {
241241
cmdArgs = append(cmdArgs, "--shrink-gamut", "1.1")
242242
cmdArgs = append(cmdArgs, "--saturation-scale", "1.0")
243243
cmdArgs = append(cmdArgs, "--clip-error")
244+
case po.Dither.OptionsSet04:
245+
cmdArgs = append(cmdArgs, "--jzazbz")
246+
cmdArgs = append(cmdArgs, "--map-palette", "pal_inflate_extra")
247+
cmdArgs = append(cmdArgs, "--pal-inflate")
248+
cmdArgs = append(cmdArgs, "--chroma-lightness")
249+
cmdArgs = append(cmdArgs, "--shrink-gamut", "1.1")
250+
cmdArgs = append(cmdArgs, "--saturation-scale", "1.0")
251+
cmdArgs = append(cmdArgs, "--clip-error")
252+
cmdArgs = append(cmdArgs, "--auto-enhance")
244253
case po.Dither.OptionsSetCam16:
245254
cmdArgs = append(cmdArgs, "--cam16")
246255
cmdArgs = append(cmdArgs, "--chroma-lightness")

0 commit comments

Comments
 (0)