anchor.diff:  set "fn="
   call:cropfilename fn "%~1" %TFN%
   set "origsize=%~2"
  +set "optsize=%~3"
  +set "change=%~4"
   call:prepsize origsize
   set "origsize=          %origsize%"
  -set "optsize=%~3"
   call:prepsize optsize
   set "optsize=          %optsize%"
  -set "change=%~4"
  -set "sign="
  -if %change% lss 0 (set "sign=-" & set "change=%change:~1%")
   call:prepsize change
  -set "change=           %sign%%change%"
  -set "percent=          %5%%"
  +set "change=           %change%"
  +set "percent=          %~5%%"
   echo. !fn:~,%TFN%!^|%origsize:~-11%^|%optsize:~-11%^|%change:~-10%^|%percent:~-10%
   endlocal
   exit /b
   
   ::%1 - variable name
   :prepsize
  -if !%~1! geq %GB% (call:division %~1 %GB% 100 & set "%~1=!%~1!GB" & exit /b)
  -if !%~1! geq %MB% (call:division %~1 %MB% 100 & set "%~1=!%~1!MB" & exit /b)
  -if !%~1! geq %KB% (call:division %~1 %KB% 100 & set "%~1=!%~1!KB" & exit /b)
  -set "%~1=!%~1!byte"
  +set "sign="
  +if !%~1! lss 0 (set "sign=-" & set /a "%~1*=-1")
  +if !%~1! geq %GB% (call:division %~1 %GB% 100 & set "%~1=%sign%!%~1! GB" & exit /b)
  +if !%~1! geq %MB% (call:division %~1 %MB% 100 & set "%~1=%sign%!%~1! MB" & exit /b)
  +if !%~1! geq %KB% (call:division %~1 %KB% 100 & set "%~1=%sign%!%~1! KB" & exit /b)
  +set "%~1=%sign%!%~1! B"
   exit /b
   
   ::%1 - file name
  
positive.code: :savelog
  setlocal
  set /a "change=%~z1-%2"
  set /a "perc=%change%*100/%2" 2>nul
  set /a "fract=%change%*100%%%2*100/%2" 2>nul
  set /a "perc=%perc%*100+%fract%"
  call:division perc 100 100
  >>"%logfile2%" echo.%~1;%2;%~z1;%change%;%perc%;ok
  if %thread% equ 1 (
  	call:printfileinfo "%~1" %2 %~z1 %change% %perc%
  )
  endlocal & exit /b
  
  ::%1 - file name
  ::%2 - 	1 - Images are already optimized
  
negative.code: set /a "SImageSize%~1+=!ImageSize%~1!"
  set "TotalSize%~1=0"
  set "ImageSize%~1=0"
  echo.!STotalSize%~1!	!SImageSize%~1!	!step%~1!	!step10%~1!	!stepB%~1!
  if !SImageSize%~1! lss %BYTECONV% if !STotalSize%~1! lss %BYTECONV% exit /b
  set /a "step%~1=(!step%~1!+1)%%3"
  if !step%~1! equ 0 (
  	set "step10%~1=100"
  	set /a "stepB%~1*=%KB%"
  	call:division2 STotalSize%~1 %KB% 100
  	call:division2 SImageSize%~1 %KB% 100
  ) else (
  	set /a "step10%~1/=10"
  	set /a "STotalSize%~1/=10"
  	set /a "SImageSize%~1/=10"
  )
  echo.!STotalSize%~1!	!SImageSize%~1!	!step%~1!	!step10%~1!	!stepB%~1!
  exit /b
  
  ::%1 - JPG|PNG|GIF
  :fincalc
  if !TotalSize%~1! equ 0 if !STotalSize%~1! equ 0 exit /b
  call:division2 TotalSize%~1 !stepB%~1! !step10%~1!
  call:division2 ImageSize%~1 !stepB%~1! !step10%~1!
  set /a "STotalSize%~1+=!TotalSize%~1!"
  