anchor.diff:  cls
   set "gif="
   title [GIF] %name% %version%
  -1>&2 echo. -------------------------
  -1>&2 echo. Optimization setting GIF:
  -1>&2 echo. -------------------------
  +1>&2 echo. ----------------------
  +1>&2 echo. GIF optimization mode:
  +1>&2 echo. ----------------------
   1>&2 echo.
   1>&2 echo. [1] Default
   1>&2 echo.
   1>&2 echo. [0] Skip
   1>&2 echo.
  -1>&2 echo. ---------------------------------------
  -set /p gif="#Select setting and press Enter [0-1]: "
  -1>&2 echo. ---------------------------------------
  +1>&2 echo. --------------------------------------
  +set /p gif="#Select mode and press Enter [0-1]: "
  +1>&2 echo. --------------------------------------
   1>&2 echo.
   if "%gif%" neq "0" if "%gif%" neq "1" goto:gif
   exit /b
  
positive.code: set "filework2=%tmppath%\%~n2%1%-gifsicle2~x1"
  set "filework=%filework%%filework2%"
  if not exist "%~2" (
  	call:saverrorlog "%~f2" "The image is not found"
  	exit /b 1
  )
  gifsicle --batch %giftags% --optimize=3 --output "%filework1%" "%~2" 1>nul 2>&1
  
negative.code: :helpmsg
  title [Manual] %name% %version%
  1>&2 (
  	echo.-----------------------------------------------------------------------------
  	echo. Image Catalyst - lossless PNG, JPEG and GIF image optimization / compression
  	echo.
  	echo. Please check README for more details
  	echo.
  	echo. call iCatalyst.bat [options] [add directories \ add files]
  	echo.
  	echo. Options:
  	echo.
  	echo. /png:#	PNG optimization mode ^(Non-Interlaced^):
  	echo.	1 - Compression level - Xtreme
  	echo.	2 - Compression level - Advanced
  	echo.	0 - Skip ^(default^)
  	echo.
  	echo. /jpg:#	JPEG optimization mode:
  	echo.	1 - Encoding Process - Baseline
  	echo.	2 - Encoding Process - Progressive
  	echo.	3 - use mode of original image
  	echo.	0 - Skip ^(default^)
  	echo.
  	echo. /gif:#	GIF optimization mode:
  	echo.	1 - use settings of original image
  	echo.	0 - Skip ^(default^)
  	echo.
  	echo. "/outdir:#" image saving options:
  	echo.	true  - replace original image with optimized variant
  	echo.	false - open dialog box for saving images ^(default^)
  	echo.	"full path to directory" - specify directory to save images to.
  	echo.	for example: "/outdir:C:\temp". If the destination directory
  	echo.	does not exist, it will be created automatically.
  	echo.
  	echo. Add directories \ Add files:
  	echo. - Specify full image paths and / or paths to directories containing images.
  	echo.   For example: "C:\Images" "C:\logo.png"
  	echo. - Full image paths should not contain any special characters such as
  	echo.   "&", "%%", "(", ")" etc.
  	echo. - Images in sub-directories are optimized recursively.
  	echo.
  	echo. Examples:
  	echo. call iCatalyst.bat /gif:1 "/outdir:C:\photos" "C:\images"
  