Skip to content

Commit 3b5c767

Browse files
committed
Update README.md
1 parent 583de5e commit 3b5c767

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
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).
23

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.
45

56
The thumbnails will be displayed in the #miniatures with the class .thumbnail and the id mini_[i].
67

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
89

910
Images can be either jpeg, gif or png

0 commit comments

Comments
 (0)