Skip to content

Commit 8557a5b

Browse files
authored
Fix No Dither
1 parent 5371247 commit 8557a5b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

gifconv.bat

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,12 @@ IF %dither% EQU 2 SET ditheralg=heckbert
220220
IF %dither% EQU 3 SET ditheralg=floyd_steinberg
221221
IF %dither% EQU 4 SET ditheralg=sierra2
222222
IF %dither% EQU 5 SET ditheralg=sierra2_4a
223-
IF %dither% EQU 6 SET "ditherenc="
223+
IF %dither% EQU 6 SET "ditheralg=none"
224224

225-
IF %dither% LEQ 5 (
226-
IF NOT %mode% EQU 2 (
227-
IF DEFINED errorswitch SET ditherenc=:dither=!ditheralg!
228-
IF NOT DEFINED errorswitch SET ditherenc==dither=!ditheralg!
229-
)else SET ditherenc=:dither=!ditheralg!
230-
)
225+
IF NOT %mode% EQU 2 (
226+
IF DEFINED errorswitch SET ditherenc=:dither=!ditheralg!
227+
IF NOT DEFINED errorswitch SET ditherenc==dither=!ditheralg!
228+
)else SET ditherenc=:dither=!ditheralg!
231229
:: Setting variables to put the command together; checking for Error Diffusion if using Bayer Scale and adjusting the command accordingly
232230

233231
IF NOT DEFINED bayerscale SET "bayer="

0 commit comments

Comments
 (0)