Cards

So, I had an idea…

What if I could automate a gallery?

Matt “Doc” Perry, Somewhere on that 3rd rock from the Sun

February 15th, 2019

I love solving problems (even non-existent first world ones) with technology.

I had taken a look at the woefully out of date pages on my site the other day. I hadn’t update a needs/wants list since 2015, I hadn’t updated a trade-bait cards list since 2012. It was pretty sad. What’s the old saying? “The cobblers children have no shoes”? Well, the web guy doesn’t have time to update his own site. I’ve built 4 sites in two months so far in 2019, but I can’t seem to find the time to update a list.

So, I had a thought. What would be the easiest way to have something, essentially, update itself with minimal interaction and effort? What if I could create a gallery of Trade-worthy cards using a few off-the-shelf plugins and scripts?

Well, I gave it a try.

cards.docholoday.com

Edit: I actually updated my Cards page after I liked the results… Click Here.

I need to say up front that this is a TEST of the technology, not a full blown implementation.

Here’s the jist. On the server, within a defined “gallery” folder, I’ve created 30 sub folders. One for each Major League Baseball team. In those, I drop scans of cards. I’ve made the scans with a photoshop action that crops, resizes and saves anything I have in my “marquee” tool. I have the tool set on a fixed size (2.5×3.5). I scan an entire scanner bed of cards, click once on the card, click the action button, and done. Saving with a useful name is about the longest part of it. Then I use an FTP program to just drop them into the 30 folders.

That’s it. No editing pages to update galleries, no painful WordPress short codes to change. Heck, theres not even “pages” technically.

So, with this little experiment, I took a handful of cards I had sitting around (not and exhaustive inventory of everything I have) and tried it out. It seems to work pretty well.

More cards load as you scroll on the “all” category. It’s sortable by teams if you have a specific interest. The images open larger in a lightbox.

And I feel like all I did was drop files into a folder.

Again, this was just a test. A theory. Since it seems to be working, I have a feeling I’ll be porting it back to this site and integrating it here. Until then, please check it out and let me know what you think. I can answer any questions about it as well for those of you that have WordPress blogs as well.

Later.