Shift-Map Image Editing Retargeting Results
Shift-Map Home Retargeting Inpainting Reshuffling Composition More Examples
Click on an image to see it in full size
= 1024*1024) {
       $sizestr = sprintf("%.1fM", $fsize/(1024*1024));
      } else {
       $sizestr = sprintf("%dk",($fsize+1023)/1024);
      }      
    } 
    $mtime = filemtime($file);
    if ($mtime != FALSE) {
      $timestr = date($DATE_FORMAT,$mtime);
    } else {
      $timestr = "";
    }
    #printf('[%s] %s',$icon,$alt,$file,$label);
    try{
    $size = getimagesize($file);
    if ($size>0){
       printf('%s',$file,$label);
       $spaces=max($w1-strlen($label),0);
   
       #printf("%s %6s\n",$timestr,$sizestr);
       printf("\n");
    
       $factor = max($size[0]/800,1);
       
       printf('',$file,$size[1]/$factor,$size[0]/$factor);
       printf("%${spaces}s","");
       printf("\n",$file);        
    } 
    }
    catch (MyException $e){
    }
 }
 closedir($dir);
}
?>