|
Post by samma05 on May 17, 2007 16:07:02 GMT 7
Is there any module available for replacing the built-in photo web server? The photo web server is no good for me.
Many thanks.
|
|
|
Post by dbridges on May 18, 2007 5:03:28 GMT 7
No.
There have been some half hearted attempts at deploying some alternate PHP based gallery software but they've generally been just as flawed as the existing gallery.
Do voice your opinion though because thecus may be listening...
Why is it no good for you?
|
|
|
Post by guillaume1351 on May 18, 2007 16:20:53 GMT 7
Hi I have installed gallery2 on a debian chroot installation. I have used lighttpd with fastcgi & php eaccelerator & mysql. It work nice on my N2100 .
|
|
|
Post by samma05 on May 22, 2007 13:04:27 GMT 7
No. There have been some half hearted attempts at deploying some alternate PHP based gallery software but they've generally been just as flawed as the existing gallery. Do voice your opinion though because thecus may be listening... Why is it no good for you? Thanks for the reply. I find the built-in photo album difficult to upload a large number of photos. There is very limited way to do the upload (no ftp, zipped files not allowed, etc). Moreover, in my view, the interface for viewing photos does not look very nice.
|
|
|
Post by samma05 on May 22, 2007 13:06:04 GMT 7
Hi I have installed gallery2 on a debian chroot installation. I have used lighttpd with fastcgi & php eaccelerator & mysql. It work nice on my N2100 . Thanks, but I am not good at Linux and hence I dare not try installing debian on the N2100 box .
|
|
rudyk
New Member
Posts: 12
|
Post by rudyk on May 29, 2007 1:24:02 GMT 7
I've been using a PHP script that a friend of mine wrote for me to display my home photos on my SuSE Linux web server. It would probably be dead easy to use it as the basis for a module to replace the default gallery, it uses the same 'convert' utility.
If someone would like to take on the relatively easy challenge of using this script in a module then I'd be very grateful as it would allow me to replace my webserver with the N2100:
index.php
<?php
// Change history {{{ // Version 1 -Original - Early 2003 or so // Version 2 20031027 -Folds and change history added // -Use vim command :set foldmethod=marker // Version 3 20070325 -Thumbnails and 640s created on demand // to speed up first access by not // creating so many 640*480s. This also // allow new files to be added after // first access - their thumbnails and // 640 are created automatically. // -Rotation of pictures based on EXIF // Use earlier versions if you have // manually rotated pictures. // -EXIF data display (in advanced mode) $version=3; // }}}
// Options and parameters {{{ if (!$thumbsize=$_GET["thumbsize"]) {$thumbsize="200x200";}; if (!$picsize=$_GET["picsize"]) {$picsize="640x640";}; if (!$cols=$_GET["cols"]) {$cols=4;}; if (!$force=$_GET["force"]) {$force="No";}; if (!$advanced=$_GET["advanced"]) {$advanced="No";}; $picture=$_GET["picture"]; // $options is the list of options to pass with the href link to the picsize page. Don't include $picture // as this is added later. $options="?thumbsize=$thumbsize&picsize=$picsize&cols=$cols&force=$force&advanced=$advanced"; //}}}
// Get list of image files {{{ $d = dir("."); $i=1; while ($entry = $d->read()) { eregi("\.jpg$",$entry) and $myfiles[$i++]=$entry; } $d->close(); //}}}
// Display advanced user selectable parameters {{{ if ($advanced == "Yes") { ?> <center><table border=2 cellpadding=3 cellspacing=5 bgcolor="#00BBBB"><tr ><td> <form action="index.php" method="GET"> Thumb: <select type="text" name="thumbsize" /> <?PHP foreach (Array ("300x300","200x200","100x100") as $i) { print "<option value=\"$i\" "; $thumbsize == $i and print "selected"; print ">$i</option>"; } ?> </select> Picture: <select type="text" name="picsize" /> <?PHP foreach (Array ("800x800","640x640","300x300","200x200","100x100") as $i) { print "<option value=\"$i\" "; $picsize == $i and print "selected"; print ">$i</option>"; } ?> </select> Columns: <select type="text" name="cols" /> <?PHP foreach (Array (2,3,4,5,6,7,8,9,10) as $i) { print "<option value=\"$i\" "; $cols == $i and print "selected"; print ">$i</option>"; } ?> </select> Force: <select type="text" name="force" /> <?PHP foreach (Array ("No","Yes") as $i) { print "<option value=\"$i\" "; $force == $i and print "selected"; print ">$i</option>"; } ?> </select> Advanced: <select type="text" name="advanced" /> <?PHP foreach (Array ("Yes","No") as $i) { print "<option value=\"$i\" "; $advanced == $i and print "selected"; print ">$i</option>"; } ?> </select> Picture: <select type="text" name="picture" /> <?PHP foreach ($myfiles as $i) { print "<option value=\"$i\" "; $picture == $i and print "selected"; print ">$i</option>"; } ?> </select> <input type="submit"> </td></tr></table></center><br> <?PHP } // }}}
// Create thumbs and pics directories{{{ // If force is set, simply attempt to remove the directories first
// Remove old pics and thumbs {{{ if ($force == "Yes" and is_dir($thumbsize)) { print "Erasing old $thumbsize thumbnail images<br>"; (system ("rm -rf $thumbsize 2>&1",$retval) == "" and $retval == 0) or die (" Failed to clear old thumbs directory."); }; if ($force == "Yes" and is_dir($picsize)) { print "Erasing old $picsize pictures images<br>"; (system ("rm -rf $picsize 2>&1",$retval) == "" and $retval == 0) or die (" Failed to clear old picsize directory."); }; clearstatcache(); // }}}
// Create directories {{{ if (!is_dir($thumbsize)) { (system ("mkdir $thumbsize 2>&1",$retval) == "" and $retval == 0) or die (" Failed to make thumbs directory."); } if (!is_dir($picsize)) { (system ("mkdir $picsize 2>&1",$retval) == "" and $retval == 0) or die (" Failed to make picsize directory."); }
// Display top picture if requested // Create it if it does not already exist{{{ if ($picture) { $exif = exif_read_data($picture, 0, true); switch ($exif['IFD0']['Orientation']) { case 1: $rotation=0; break; case 6: $rotation=90; break; case 8: $rotation=270; break; default: $rotation=0; break; } if (!file_exists("$picsize/$picture")) { ( system ("convert -rotate $rotation -resize $picsize \"$picture\" $picsize/\"$picture\"",$retval)=="" and $retval==0) or die ("Could not create picsize for $picsize/$picture"); }
print "<center><a href=\"$picture\"><img src=\"$picsize/$picture\" </center>"; if ($advanced == "Yes" and exif_read_data($picture, 'IFD0')) {
$orientation = $exif['IFD0']['Orientation']; $model = $exif['IFD0']['Model']; $datetime = $exif['IFD0']['DateTime']; $exposuretime = $exif['EXIF']['ExposureTime']; $fnumber = $exif['EXIF']['FNumber']; $iso = $exif['EXIF']['ISOSpeedRatings']; $flength = $exif['EXIF']['FocalLength']; echo "<br />\n"; echo "File: $picture"; echo ", Model: $model"; echo ", Date/Time: $datetime"; echo "<br>Exp Time: $exposuretime"; echo ", F: $fnumber"; echo ", ISO: $iso"; echo ", Focal Length: $flength"; echo ", Orientation: $orientation "; //foreach ($exif as $key => $section) { // foreach ($section as $name => $val) { // echo "$key.$name: $val<br />\n"; // } // } } }; // }}} // }}}
// Display the thumbs {{{ print "<center><table cellpadding=5 cellspacing=5 >\t<tr>"; foreach ($myfiles as $i) { if($c++ == $cols) {$c=1;print "</tr>\n\t<tr>";};
// Create thumb and pic on the fly if (!file_exists("$thumbsize/$i")) { $exif = exif_read_data("$i", 0, true); switch ($o = $exif['IFD0']['Orientation']) { case 1: $rotation=0; break; case 6: $rotation=90; break; case 8: $rotation=270; break; default: $rotation=0; break; } //print "Orientation is $o"; ( system ("convert -rotate $rotation -resize $thumbsize \"$i\" $thumbsize/\"$i\"",$retval)=="" and $retval==0) or die ("Could not create thumbsize for $thumbsize/$i"); }
print "<td bgcolor=\"#00BBBB\"><center><a href=\"index.php$options&picture=$i\"> <img src=\"$thumbsize/$i\" border=\"\"><br>$ii</a></center></td>"; } print "</tr></table></center>"; // }}}
// Let user choose to go advanced {{{ if ($advanced == "No") { ?> <center> <table cellpadding=10> <tr> <td colspan=3 bgcolor="#00BBBB"> <form action="index.php" method="GET"> Would you like some additional options such as different resolution? <select type="text" name="advanced" /> <option value="No" selected>No thanks</option> <option value="Yes">Yes Please</option> </select> <input type="submit" name="submit"> </td> </tr> <tr bgcolor="#00BBBB"> <td ><center><a href="..">Back to Photo album home page</a></center></td> <td><center>Page Design: Arvid Carlander</center></td> <td><center>Version <?PHP print $version ?></center></td> </tr> </table> </center> <?PHP } // }}} ?>
|
|