Skip to content

Commit

Permalink
Fixed gif thing
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Jun 7, 2023
1 parent c71d677 commit 3969e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DeveImageOptimizer/ImageOptimization/ImageOptimizationPlan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ private List<ImageOptimizationStep> 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;
Expand Down

0 comments on commit 3969e9e

Please sign in to comment.