I’ve been meaning to add some functionality to my gallery for months (years?) now, and I’ve finally added the first installment of the updates.
Minor, but pretty cool (and home-grown).
The new feature is the row of – currently five – images at the top of the page. Current image is in center, outlined in white. Go back one or two images; go ahead one or two images.
I’ve had previous/next links all the time, but it’s nice to get deeper (back two/up two) and to tie them to images.
Load is a little heavier (I reference the thumbnails, but we still could be loading between 100k and 300k or so), since I pull in up to six images (five thumbs; one full), not counting the basic page image needs.
Four comments on this “improvement”:
- This is the first baby-step in changes I want to the gallery.
- Maybe I’ll have to roll it back. I’m not perfect.
- I was able to easily integrate this into a Perl CGI I wrote years ago. That – to me – is amazing.
- It took a bit to error-trap, check all instances for errors and so on. I’ve released it because I believe it stable. However, I’ve worked with so many programmers who would have put v1.0 into production because they did not test. Test, people… I caught some errors; so would you…
Hmmm…I already resize and thumbnail an uploaded image; I might have to “icon” it as well (the icons are currently 50×50 pixels; I think that’s a good size).
Progress.