justinrussell.com gallery

See the awesome power of GD at work!

I’ve relocated my photo gallery from the Pine Tree Photos site to justinrussell.com. Why? Well, I started to think that since I was doing all of the picture taking for PTP, it made sense that the photos should be on my personal site instead of on a separate one.

Site migrations are pretty ho-hum… except this one. As you may have noticed, PTP hasn’t been updated since July, and the same picture has been hanging out in the “pic” module of the blog since sometime in April or May. The reason for this is pretty simple; just look at what I had to go through to update the gallery:

1. Open the photo to upload in Photoshop Elements.
2. Resize to 480×360.
3. Put a watermark on the picture.
4. Save a compressed JPEG.
5. Take the watermark off.
6. Resize to 160×120.
7. Save a compressed JPEG.
8. Upload images to site.
9. Download database files.
10. Update photo database file.
11. Update album database file.
12. Upload database files.

…for each picture.

Admittedly, there’s only so much you can improve. That said, here’s the process now:

1. Go to administrative PHP page in gallery.
2. Select photo from hard drive.
3. Fill in information about file.
4. Push “Submit”.

In other words, GD/PHP resizes the pictures for me, places a watermark on the larger one, and inserts them into the gallery correctly without any work by me. Have I said lately how much I love programming PHP?

There are a few more changes I have to do, but it’s basically done. Go ahead and browse the few pictures I’ve already put up, including more from downtown Bangor a couple nights ago.

Anyway… have fun! justinrussell.com/gallery

Leave a Comment

Want a personal avatar to show up next to your post? Get a Gravatar!