PHP Gallery and Server Resources
Posted: Sun Jun 04, 2006 2:28 am
Hello,
I was wondering if some of you guys that have developed galleries or know some stuff about resources would help me out here. I have developed a gallery that displays 9 thumbnails for each page. Now, I have added the option to add a dropshadow to the pic but I am wanting to do it "on-demand" to eliminate the need to save original pics and shadowed pics combined (and a couple other reasons). Now my question and concern: Do you guys think shadowing 9 pics (about 10K in size each...thumbs) would be intensive on the CPU and memory. I'm not thinking it will be memory intensive (considering a 10K image isnt all that big uncompressed..and I make sure to clean up each image after its shadowed and outputted) but I am worried about the CPU usage. Currently the server I have going has a 2.6 P4 and 1024 RAM. Also, when someone clicks a thumb, it opens a large image in a new window I am wanting to shadow that on demand, but considering that is about a 50K image, I wouldn't think that would be a problem just doing it by itself and not all at once.
Please let me know what you guys think and if you wouldn't mind, some suggestions on what I should do. Also, if anyone knows of a good way to check how much cpu load a script creates, sharing that would be much appreciated.
Thanks,
Ross
I was wondering if some of you guys that have developed galleries or know some stuff about resources would help me out here. I have developed a gallery that displays 9 thumbnails for each page. Now, I have added the option to add a dropshadow to the pic but I am wanting to do it "on-demand" to eliminate the need to save original pics and shadowed pics combined (and a couple other reasons). Now my question and concern: Do you guys think shadowing 9 pics (about 10K in size each...thumbs) would be intensive on the CPU and memory. I'm not thinking it will be memory intensive (considering a 10K image isnt all that big uncompressed..and I make sure to clean up each image after its shadowed and outputted) but I am worried about the CPU usage. Currently the server I have going has a 2.6 P4 and 1024 RAM. Also, when someone clicks a thumb, it opens a large image in a new window I am wanting to shadow that on demand, but considering that is about a 50K image, I wouldn't think that would be a problem just doing it by itself and not all at once.
Please let me know what you guys think and if you wouldn't mind, some suggestions on what I should do. Also, if anyone knows of a good way to check how much cpu load a script creates, sharing that would be much appreciated.
Thanks,
Ross