anchor.diff:  echo Script originally writen for Samsung Gear 360.
   echo.
   echo Usage:
  -echo %SCRIPTNAME% [/q quality] [/o outdir] [/h] infile [outputfile] [hugintemplate]
  +echo %SCRIPTNAME% [/q quality] [/o outdir] [/h] infile [hugintemplate]
   echo.
   echo Where infile is a panorama file from camera, it can
  -echo be a wildcard (ex. *.jpg). hugintemplate is optional.
  +echo be a wildcard (ex. *.JPG). hugintemplate is optional.
   echo.
   echo Panorama will be written to a file with appended _pano,
   echo example: 360_010.JPG -> 360_010_pano.JPG
   echo.
  -echo /q switch sets output jpeg quality
  +echo /q sets output jpeg quality
   echo /o sets output directory for stitched panoramas
   echo    default: current directory
   echo /h prints help
  
positive.code: OUTTMPNAME="out"
  JPGQUALITY=97
  PTOJPGFILENAME="dummy.jpg"
  
  # Clean-up function
  clean_up() {
      if [ -d "$TEMPDIR" ]; then
          rm -rf "$TEMPDIR"
      fi
  }
  
  # Function to check if a command fails, arguments:
  
negative.code: rem There are problems with -delete_original in exiftool, manually remove the file
  del %LOCALOUTNAME%_original
  exit /b 0
  
  :eof
  