Resizing pics
Did some more work on mysecretkitchen.co.uk but waiting for a response from the owner so I can finish it.
Did a few updates on dragon-hearts.net will probably do some more later.
Sadly the server went squiffy twice this month >.> should be fixed this time though I hope.
Right now I'm resizing our holiday photos using a php script if anyone wants the script it is...
<?php
$dirtoscan="Path to the directory with the pics";
$dir=scandir($dirtoscan);
chdir($dirtoscan);
foreach($dir as $key=>$val)
{
$len=strlen($val);
if ($val{$len-3}.$val{$len-2}.$val{$len-1}=="JPG")
{
echo $val;
$size=@getimagesize($val);
$newW=ceil($size[0]/8);
$newH=ceil($size[1]/8);
$source=imagecreatefromjpeg($val);
$img=imagecreatetruecolor($newW,$newH);
imagecopyresampled($img,$source,0,0,0,0,$newW,$newH,$size[0],$size[1]);
imagejpeg($img,$val);
echo " resized
";
}
}
?>
It will resize all JPG files (normal stuff from a digital camera) just change the $dirtoscan to whatever you path is and run from the command line.
