From 3969e9e40ed8c1f260b05a8ff937c819c02a66d7 Mon Sep 17 00:00:00 2001 From: Devedse Date: Wed, 7 Jun 2023 14:06:24 +0200 Subject: [PATCH] Fixed gif thing --- DeveImageOptimizer/ImageOptimization/ImageOptimizationPlan.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DeveImageOptimizer/ImageOptimization/ImageOptimizationPlan.cs b/DeveImageOptimizer/ImageOptimization/ImageOptimizationPlan.cs index 8981811..247a79c 100644 --- a/DeveImageOptimizer/ImageOptimization/ImageOptimizationPlan.cs +++ b/DeveImageOptimizer/ImageOptimization/ImageOptimizationPlan.cs @@ -299,10 +299,10 @@ private List DeterminePlan(ImageOptimizationLevel imageOp break; case var e when ConstantsFileExtensions.GIFExtensions.Contains(e.ToUpperInvariant()): { - //Plugin: ImageMagick (1/2) Commandline: C:\PROGRA~1\FILEOP~1\PLUGIN~1\magick.exe convert "C:\Users\Davy\AppData\Local\Temp\DeveImageOptimizerTemp\TestImageGIF_gykbljhq.gif" -quiet -set dispose background -layers optimize -compress -loop 0 LZW "Z:\FileOptimizerTemp\FileOptimizer_Output_4294964962_TestImageGIF_gykbljhq.gif" + //Plugin: ImageMagick (1/2) Commandline: C:\PROGRA~1\FILEOP~1\PLUGIN~1\magick.exe convert "C:\Users\Davy\AppData\Local\Temp\DeveImageOptimizerTemp\TestImageGIF_gykbljhq.gif" -quiet -layers optimize -compress -loop 0 LZW "Z:\FileOptimizerTemp\FileOptimizer_Output_4294964962_TestImageGIF_gykbljhq.gif" //Plugin: gifsicle (2/2) Commandline: C:\PROGRA~1\FILEOP~1\PLUGIN~1\gifsicle.exe -w -j --no-conserve-memory -o "Z:\FileOptimizerTemp\FileOptimizer_Output_4294966173_TestImageGIF_gykbljhq.gif" -O3 "C:\Users\Davy\AppData\Local\Temp\DeveImageOptimizerTemp\TestImageGIF_gykbljhq.gif" - steps.Add(new ImageOptimizationStep(Path.Join(toolpath, "magick.exe"), $"convert \"{ImageOptimizationStep.InputFileToken}\" -set dispose background -layers optimize -compress -loop 0 LZW \"{ImageOptimizationStep.OutputFileToken}\"", false)); + steps.Add(new ImageOptimizationStep(Path.Join(toolpath, "magick.exe"), $"convert \"{ImageOptimizationStep.InputFileToken}\" -layers optimize -compress -loop 0 LZW \"{ImageOptimizationStep.OutputFileToken}\"", false)); steps.Add(new ImageOptimizationStep(Path.Join(toolpath, "gifsicle.exe"), $"-w -j --no-conserve-memory -o \"{ImageOptimizationStep.OutputFileToken}\" -O3 \"{ImageOptimizationStep.InputFileToken}\"", false)); } break;