logo
kinderyogadag

 

 

Wil je meer informatie?

Neem gerust contact met me op:

 

e-mail info@steryoga.nl
telefoon (020) 7773645

mobiel 06 13850362

 

 

 


 

Hier binnenkort heel leuke foto's

($maxwidth/$maxheight)) { $new_w=$maxwidth; // = 250 $new_h=$maxwidth/($old_w/$old_h); // 250/(1936/1088) = 140 } else if ($old_w/$old_h < $maxwidth/$maxheight) { $new_w=$maxheight*($old_w/$old_h); // 200*(1088/1936) = 106 $new_h=$maxheight; // = 200 } else { $new_w=$maxwidth; $new_h=$maxheight; } $dst_img=ImageCreateTrueColor($new_w,$new_h); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $new_w, $new_h, $old_w, $old_h); if ((strtolower($pathinfo['extension'])=='jpeg') || (strtolower($pathinfo['extension'])=='jpg')) { imagejpeg($dst_img, $image); } else if (strtolower($pathinfo['extension'])=='png') { imagepng($dst_img, $image); } else if (strtolower($pathinfo['extension'])=='gif') { imagegif($dst_img, $image); } imagedestroy($src_img); imagedestroy($dst_img); chmod($image,0644); } } function load_album($dir) { $fotos=""; if ((file_exists($dir)) && (is_dir($dir))) { $i=0; $files = scandir($dir); foreach ( $files as $file ) { if (($file != ".") && ($file != "..")) { $pathinfo=pathinfo($dir.$file); if (is_image_extention($pathinfo['extension'])) { list($width, $height, $type, $attr) = getImageSize($dir.$file); if (($width>250) || ($height>200)) { resize_image($dir.$file, 250, 200); list($width, $height, $type, $attr) = getImageSize($dir.$file); } $fotos.=''."\n"; $i++; } if ($i%2==0) { $fotos.="\n"; } } } } return $fotos; } echo(load_album("./images/fotos/2008/")); ?>

http://www.flickr.com/photos/chiararobbiano/9171688469/