Sublime directory Surf the web anonymous Pagerank Monitor


[PHP,CSS,JS] Gallery script

korki
Tue 27 June 2006, 11:14 pm GMT +0200
I wrote a simple gallery script, you can download it and coment at

http://koras.pl/blog/2006/06/27/korki-photo-shit-gallery-v-10/

or comment it below.

olaf
Wed 28 June 2006, 12:31 am GMT +0200
Hello,

do you have a demo? and maybe you can tell us what is special with this script?

vbignacio
Wed 28 June 2006, 12:54 am GMT +0200
yeah, please tell us...

Nikolas
Wed 28 June 2006, 09:27 am GMT +0200
Hey fellas the demo is here

Nice script korki. It uses the gd library? And the resize is automatic or you just upload the photos?

olaf
Wed 28 June 2006, 09:35 am GMT +0200
Hey fellas the demo is here


hm... can't remember the link before...;)

olaf
Wed 28 June 2006, 09:43 am GMT +0200
OK, the mouse over effects are nice but I didn't like that the page dissapears if I move the mouse outside that photo area. What about the loading time if there are 100 photo's or more with a better quality?

I checked a liittle bit the code of your admin script, there is no image resize function, maybe you will add this while using GD or imagemagick or try this upload class

Nikolas
Wed 28 June 2006, 09:47 am GMT +0200
For image resize try this class. It uses gd and it is compatible with the new versions of gd that handle gif files.

olaf
Wed 28 June 2006, 09:52 am GMT +0200
For image resize try this class. It uses gd and it is compatible with the new versions of gd that handle gif files.

yes right this example has more support for diff. image types.

if you need to resize large images > 1mb you should start with imagemagick

Nikolas
Wed 28 June 2006, 09:54 am GMT +0200
What is imagemagick?

olaf
Wed 28 June 2006, 09:57 am GMT +0200
What is imagemagick?

with GD you need blocks of code to resize an image, with imagemagick it's done via the command line in on row! check this: http://www.imagemagick.org/script/convert.php

(I'm very surprised that you didn't know IM, thought that this installed with Linux by default) :D

Nikolas
Wed 28 June 2006, 10:02 am GMT +0200
Wow, it looks great.

I should make a php class for this(or better search for one, I guess there will be one)

Nikolas
Wed 28 June 2006, 10:05 am GMT +0200
Ok got it. Bellow is one from PECL and one from another guy that works without pear

http://pecl.php.net/package/imagick
http://freshmeat.net/projects/imagemagickclass/


Thanks for the tip Olaf (I guess it would be good for korki too), I will need this to my new project.

olaf
Wed 28 June 2006, 10:07 am GMT +0200
Inside my upload class is a photo upload example, within this example its possible to resize the photo with GD or IM.

I started with IM because GD need a lot of MB's of memory to resize a > 1mb foto

Nikolas
Wed 28 June 2006, 10:08 am GMT +0200
1mb is too much. Sites like flickr wouldn't stand it even if they had a farm of 100 servers, lol :)

olaf
Wed 28 June 2006, 10:35 am GMT +0200
1mb is too much. Sites like flickr wouldn't stand it even if they had a farm of 100 servers, lol :)

The user (most of my customers) didn't know about file sizes, they upload everything they made with their 5mio pixel digi camera

korki
Sun 2 July 2006, 12:49 pm GMT +0200
images are resizing automaticly when U want to view it for the first time. It uses gd library and saves the thumb in a folder and next time to do it faster the script opens the already made thumb. i think it is quite quick

olaf
Sun 2 July 2006, 01:05 pm GMT +0200
images are resizing automaticly when U want to view it for the first time. It uses gd library and saves the thumb in a folder and next time to do it faster the script opens the already made thumb. i think it is quite quick
Yes it's quick if the file much smaller then 1MB otherwise it takes time and memory...

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional