print("None of TIFF (".bin2hex(START_TIFF).") or JP4/JPEG (".bin2hex(START_JP).") markers found in the first ".$chunksize." bytes of the file $path/$file\n");
return-1;
}
if($pos_jp===false){
$file_type=1;// tiff
}elseif(($pos_tiff!==false)&&($pos_tiff<$pos_jp)){// reducing probability of stray START_JP