FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

image gallery

 


truespeed
Does anyone know any good image gallery scripts,simple ones that can do something like THIS but in php,so i can just drop images into folders,and they make thumbnails themselves,and also that it has a simple looking interface like the example above?
biljap
There are some interesting PHP/MySQL scripts for creating a picture gallery from a folder. Check out http://www.scriptdungeon.com/free_php_scripts/image_galleries/free_php_scripts.php
and http://gallery.menalto.com/
sonam
Just go on my site and look for One-page Gallery. It is quite simple. It is working without data bases and all stuff working in the fly.

Sonam
kv
check hotscripts.com. They have hundreds of scripts, free as well as paid ones. You can try few of them and pick one which suits your needs.

If all you want to do is display images neatly, and are ready to code yourself, here is a snippet from the code I wrote for my site.

Code:


//loop through each file. Inside loop, have this code


   $imgfile="albums/".$album_id."/".$file_name;
   $photo_id=$row['id'];

   //if it is a jpeg file
   if(strtoupper(substr($file_name, strrpos($file_name, ".") + 1))=="JPG")
   {

      if(!file_exists("$thumbnail_dir/t_$file_name"))
      {
         $base_image   =   "$album_dir/$file_name";
         $source      =   imagecreatefromjpeg($base_image);
         list($width, $height) = getimagesize($base_image);
         $multiplier   =   70/$height;
         $new_width   =   $width * $multiplier;
         $new_height   =   $height * $multiplier;
         $thumb      =   imagecreatetruecolor($new_width, $new_height);

         imagecopyresized($thumb, $source, 0,0,0,0, $new_width, $new_height, $width, $height);
         echo "<div class="float">";
         imagejpeg($thumb);
         echo "</div>";
         imagedestroy($thumb);
      }
   }

Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.