Gallery Progress II
Have I mentioned lately how much PHP rocks? Ah, yeah…
Today I researched and created the server side code for generating permanent thumbnails upon uploading. The beauty to this is that the server will only take a cpu hit on uploading (not often) instead of each view. The only downside is that it will eat into some of the space that you will be allocated. No big deal really as some of the thumbnails take up to 5k… ooooh.
Of course accomplishing this was much easier than I ever imagined and as usual I have PHP and Airor to thanks for that. Gosh, I’d hate to think what I would be doing now if Airor hadn’t shown me the light.
Did some preliminary work on beautifying the gallery viewer. Using lots of new CSS for the first time for extra fast, efficient and pixel perfect pages. Not to mention much easier to update.
Only the occasional client side JavaScript quirk for the image previews (nothing do to with generating thumbnails on the server) is bothering me now. I’m thinking that I can clean up the routines a bit and stop the function from rechecking itself so often. I’m guessing that sometimes it’s too fast and/or pulls the wrong value cause it’s programmed to be hyperactive.
Everything is going great. Time to go relax now.