To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Code Critique

Code Critique Having someone critique your code is always a great way to hone the skills. Stop in and post your code to see what your peers may have done differently.

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-15-2003, 06:30 AM   #1
cahva
Senior Member
 
cahva's Avatar
 
Join Date: Jul 2002
Location: Finland
Posts: 1,325
Yet another easy gallery/YAEG v1.3)

Hi all,

I know, I know.. This has been done a thousand times before but I couldnt find a galleryscript thats easier than this

This script is meant to be as easy as possible. Works with GIF,JPG and PNG pictures.
Gallery viewers can also comment the pictures too with this! Aint that neat!

- Requires GD2-lib

Usage
------
Only things you have to do is:
1.Create directory
2.Set the permission to write to directory
3.Copy pictures to directory

Thats it. Gallery is now ready for use. Open a browser. Go to the directory you created.
For the first time it makes the thumbnails so it takes a bit longer than usual.
You can later copy pictures as you want. It allways makes thumbnails for new pictures. Also if you copy pictures with same name, it creates the thumbnail again for the new picture(script compares date for original picture and thumbnail).

Any comments and suggestions? Code got a bit ugly at later point when I added new features for the script. My friend to whom I made this for, thinks this is a god-sent script for him. Before this he made his gallery(over 1000 pictures in about 100 directories) with photoshop's gallery creator
Attached Files
File Type: txt index.txt (10.3 KB, 153 views)

Last edited by cahva; 12-15-2003 at 06:43 AM.
cahva is offline   Reply With Quote
Old 12-27-2003, 01:44 PM   #2
dv6cougar
Senior Member
 
Join Date: Mar 2003
Posts: 232
link us to a Gallery.
__________________
-Mike
Slackermikey.dk - My Personal Playground
dv6cougar is offline   Reply With Quote
Old 01-05-2004, 06:25 AM   #3
cahva
Senior Member
 
cahva's Avatar
 
Join Date: Jul 2002
Location: Finland
Posts: 1,325
Ok.. http://cahva.wmhost.com/gallery. Theres other people that uses this gallery but I dont want to link them without their permission..
cahva is offline   Reply With Quote
Old 01-05-2004, 10:09 AM   #4
dv6cougar
Senior Member
 
Join Date: Mar 2003
Posts: 232
not bad.

what's the "quality" setting on the thumbnails?

if it's above 75, i would put it down to 75, the quailty will be almost as good, but the sizes will be immensely smaller.
__________________
-Mike
Slackermikey.dk - My Personal Playground
dv6cougar is offline   Reply With Quote
Old 01-05-2004, 03:27 PM   #5
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,122
Quote:
Originally posted by dv6cougar
not bad.

what's the "quality" setting on the thumbnails?

if it's above 75, i would put it down to 75, the quailty will be almost as good, but the sizes will be immensely smaller.
For photographic images; synthetic ones might need a higher quality because there's less noise to hide compression artefacts in.
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 01-05-2004, 03:33 PM   #6
dv6cougar
Senior Member
 
Join Date: Mar 2003
Posts: 232
Quote:
Originally posted by Weedpacket
For photographic images; synthetic ones might need a higher quality because there's less noise to hide compression artefacts in.
you got me there, I usually have it do car images n such so I wouldn't know.


i have been proven incorrect then
__________________
-Mike
Slackermikey.dk - My Personal Playground
dv6cougar is offline   Reply With Quote
Old 01-05-2004, 07:08 PM   #7
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,122
Quote:
Originally posted by dv6cougar
you got me there, I usually have it do car images n such so I wouldn't know.


i have been proven incorrect then
No; just a matter of knowing the task domain (the sample gallery is photographic). Perhaps the quality could be user-adjustable.
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:13 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.