On most machines I work on, I manage to get a screenshot or two-hundred.
This is where they go if any are good. This is also where the latest shots
of any GUI-based projects of mine will be. Enjoy!
Also, any images that I think are good enough for public view go here.
");
function scaler($fn)
{
global $file_root;
if (strpos($fn, ".gif") !== false)
system("giftopnm $file_root/screens/$fn | pnmscale -xysize 120 120 | cjpeg -outfile $file_root/screens/thumb/$fn");
else if (strpos($fn, ".jpg") !== false)
system("djpeg $file_root/screens/$fn | pnmscale -xysize 120 120 | cjpeg -outfile $file_root/screens/thumb/$fn");
else if (strpos($fn, ".png") !== false)
// system("pngtopnm $file_root/screens/$fn | pnmscale -xysize 120 120 | pnmtopng > thumb/$fn");
system("/usr/local/bin/convert -write thumb/$fn $file_root/screens/$fn -scale=120x120");
}
function imgr($img)
{
global $site_root, $file_root;
if (!file_exists("$file_root/screens/thumb/$img"))
scaler($img);
$siz = round(filesize($img) / 1024, 2);
echo("\t\t\t