View Full Version : PHP Photoalbum adjustment questions

09-08-2014, 11:06 AM
1) Script Title: PHPPhotoalbum

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

3) Describe problem:

It's working great! http://www.roserenovatie.nl/fotoalbum/
Just a few things I'd like to change, but have not enough knowledge to do so.

a) First of all, it takes quite some time to load all the pictures. Does this have to do with the size of the images and can I resolve this by making the images smaller on the server and load a larger image when it's clicked on?

b) When going from page 1 to page 2 (or 3 and so on), is it possible to 'slide' to the next page? How can I make it happen?

c) If you click on the first image you see a door. The image on my computer is rotated, on te server it is rotated, but in the galary (and when clicked on) it is not. How can I adjust this?

d) I'd love to have a previous / next button on the sides of the enlarged images. Again, how do i do this?

Sorry for all the questions. If it's too much, let me know. I'm quite new here.


09-08-2014, 08:30 PM
I can start you off with 2 answers.

A) I'm on iPhone at the mo and your album is taking a REALLY long time to load for me. I would hazard a guess that all of your pics are in need of some optimisation. DD have an online optimisation tool http://tools.dynamicdrive.com/imageoptimizer/ or for batch conversions, try something like this http://toki-woki.net/p/Shrink-O-Matic/
A quality setting of 60-70% would be good in both cases.

This will help the load speed of the big pics but you specifically ask how to use thumbs on the initial page - see my answer here http://www.dynamicdrive.com/forums/showthread.php?56719-how-I-can-put-a-different-image-folder-link&p=234371#post234371

C) This is because browsers can't interpret EXIF data that is set on your image when its on your computer - the image isnt truly rotated - the EXIF data is just providing your computer imager viewer with an instruction to visually rotate. Once the pic is uploaded to the server by FTP or a basic upload form, the EXIF data is lost/corrupt and the browser will just display it with the orientation it was taken with. Some upload applications/tools are smart enough to interpret the EXIF rotate instruction and actually rotate the image during upload. To always be sure that your image is rotated properly you would need to do it in an image editing software or tools that has a rotate function. I believe that the Shrink O Matic one that I linked to above can do that.

Hope that helps

09-14-2014, 05:27 AM
I can probably throw together the rest of your requests, but let us first know how you are getting on with Beverley's excellent suggestions.