You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the script to your page, make sure the page contains 2 divs with the id #thumbnails and #largeImg.
2
+
Also set the 2 php session variables for the width of the thumbnails and the name of the folder where your large images go (the folder will be created automatically whenthe script is first run).
2
3
3
-
Every image you add to the /img/large folder will automaticaly generate it's thumbnail in /img/small (folder will be created if it doesn't exist)
4
+
All you have to do after is add any images you like to the newly created folder and the script will generate the correspondig thumbnail folder and thumbnails and add them to the page.
4
5
5
6
The thumbnails will be displayed in the #miniatures with the class .thumbnail and the id mini_[i].
6
7
7
-
Make sure rights to the img folder are set to 777 so that php can create the /small folder.
8
+
Make sure your server has the rights to write to the img folder in oreder to be able to generate the thumbnails
0 commit comments