hide processing params for passthrough

This commit is contained in:
Celogeek 2025-02-21 10:51:38 +01:00
parent b10e9b1808
commit c2ea8ff5b9
Signed by: celogeek
GPG Key ID: 850295F3747870DD

View File

@ -178,9 +178,9 @@ func (o *Options) ShowConfig() string {
{"Profile", profileDesc, true}, {"Profile", profileDesc, true},
{"Format", o.Image.Format, true}, {"Format", o.Image.Format, true},
{"Quality", o.Image.Quality, o.Image.Format == "jpeg"}, {"Quality", o.Image.Quality, o.Image.Format == "jpeg"},
{"Grayscale", o.Image.GrayScale, true}, {"Grayscale", o.Image.GrayScale, o.Image.Format != "copy"},
{"Grayscale mode", grayscaleMode, o.Image.GrayScale}, {"Grayscale mode", grayscaleMode, o.Image.Format != "copy" && o.Image.GrayScale},
{"Crop", o.Image.Crop.Enabled, true}, {"Crop", o.Image.Crop.Enabled, o.Image.Format != "copy"},
{"Crop ratio", {"Crop ratio",
utils.IntToString(o.Image.Crop.Left) + " Left - " + utils.IntToString(o.Image.Crop.Left) + " Left - " +
utils.IntToString(o.Image.Crop.Up) + " Up - " + utils.IntToString(o.Image.Crop.Up) + " Up - " +
@ -188,15 +188,15 @@ func (o *Options) ShowConfig() string {
utils.IntToString(o.Image.Crop.Bottom) + " Bottom - " + utils.IntToString(o.Image.Crop.Bottom) + " Bottom - " +
"Limit " + utils.IntToString(o.Image.Crop.Limit) + "% - " + "Limit " + utils.IntToString(o.Image.Crop.Limit) + "% - " +
"Skip " + utils.BoolToString(o.Image.Crop.SkipIfLimitReached), "Skip " + utils.BoolToString(o.Image.Crop.SkipIfLimitReached),
o.Image.Crop.Enabled}, o.Image.Format != "copy" && o.Image.Crop.Enabled},
{"Brightness", o.Image.Brightness, o.Image.Brightness != 0}, {"Brightness", o.Image.Brightness, o.Image.Format != "copy" && o.Image.Brightness != 0},
{"Contrast", o.Image.Contrast, o.Image.Contrast != 0}, {"Contrast", o.Image.Contrast, o.Image.Format != "copy" && o.Image.Contrast != 0},
{"Auto contrast", o.Image.AutoContrast, true}, {"Auto contrast", o.Image.AutoContrast, o.Image.Format != "copy"},
{"Auto rotate", o.Image.AutoRotate, true}, {"Auto rotate", o.Image.AutoRotate, o.Image.Format != "copy"},
{"Auto split double page", o.Image.AutoSplitDoublePage, o.Image.View.PortraitOnly || !o.Image.AppleBookCompatibility}, {"Auto split double page", o.Image.AutoSplitDoublePage, o.Image.Format != "copy" && (o.Image.View.PortraitOnly || !o.Image.AppleBookCompatibility)},
{"Keep double page if split", o.Image.KeepDoublePageIfSplit, (o.Image.View.PortraitOnly || !o.Image.AppleBookCompatibility) && o.Image.AutoSplitDoublePage}, {"Keep double page if split", o.Image.KeepDoublePageIfSplit, o.Image.Format != "copy" && (o.Image.View.PortraitOnly || !o.Image.AppleBookCompatibility) && o.Image.AutoSplitDoublePage},
{"Keep split double page aspect", o.Image.KeepSplitDoublePageAspect, (o.Image.View.PortraitOnly || !o.Image.AppleBookCompatibility) && o.Image.AutoSplitDoublePage}, {"Keep split double page aspect", o.Image.KeepSplitDoublePageAspect, o.Image.Format != "copy" && (o.Image.View.PortraitOnly || !o.Image.AppleBookCompatibility) && o.Image.AutoSplitDoublePage},
{"No blank image", o.Image.NoBlankImage, true}, {"No blank image", o.Image.NoBlankImage, o.Image.Format != "copy"},
{"Manga", o.Image.Manga, true}, {"Manga", o.Image.Manga, true},
{"Has cover", o.Image.HasCover, true}, {"Has cover", o.Image.HasCover, true},
{"Limit", utils.IntToString(o.LimitMb) + " Mb", o.LimitMb != 0}, {"Limit", utils.IntToString(o.LimitMb) + " Mb", o.LimitMb != 0},
@ -204,7 +204,7 @@ func (o *Options) ShowConfig() string {
{"Sort path mode", sortpathmode, true}, {"Sort path mode", sortpathmode, true},
{"Foreground color", "#" + o.Image.View.Color.Foreground, true}, {"Foreground color", "#" + o.Image.View.Color.Foreground, true},
{"Background color", "#" + o.Image.View.Color.Background, true}, {"Background color", "#" + o.Image.View.Color.Background, true},
{"Resize", o.Image.Resize, true}, {"Resize", o.Image.Resize, o.Image.Format != "copy"},
{"Aspect ratio", aspectRatio, true}, {"Aspect ratio", aspectRatio, true},
{"Portrait only", o.Image.View.PortraitOnly, true}, {"Portrait only", o.Image.View.PortraitOnly, true},
{"Title page", titlePage, true}, {"Title page", titlePage, true},