Resizing and regenerating WordPress upload thumbnails

WordPressFor quite some time, I’ve been wishing the thumbnail images WordPress creates when you upload an image were slightly bigger. The function that generates the thumbnails accepts a maximum dimension as an input parameter, but then the value (a paltry 128 pixels) is hardcoded in the script that calls the function, and there’s no way in the standard WordPress configuration to change the value, other than manually editing the admin script where the call is made.

This is easy enough to do, if you know how to find the block of code in question, but it’s wrong wrong wrong in terms of ongoing WordPress updates: when a new version is released and you update your files, the changes you made will be lost.

So the right way to go about this is with a plug-in, and fortunately there is one. It’s simple and it works. Except for the fact that it doesn’t regenerate any of your existing thumbnails.

Maybe there’s something else out there, but I wasn’t able to find one, so I had to resort to rolling my own.

The script is incredibly rudimentary right now. It’s not a plug-in, it doesn’t interface with WordPress admin at all, setting the file path and dimensions require manually editing variable values in the script, there’s no security, etc. It does seem to work though, which is the most important thing. There were a few bugs earlier on that I believe I’ve squashed, but I can’t guarantee there aren’t others, and given how quickly I put it together this afternoon, with kids screaming and car dealerships calling me every 3 minutes (yeah, that’s another blog post), it’s probably not quite as efficient as it could be. (That’s why I cranked up the max_execution_time and memory_limit values. YMMV depending on how many files you have to process.)

As long as you understand that you’re using it at your own risk, feel free to download the script. In order for it to work it should be placed in your wp-admin directory. And remember, it’s not secured at all, so I recommend uploading it, running it, and then deleting it. (Well, now that I think about it, I’m pretty sure including admin.php does automatically provide standard admin security, but don’t quote me on that.)

If I have the time and if anyone actually cares, I’ll update this and turn it into a proper plug-in with all of the attendant niceties. Otherwise… well… never mind!

Bleeding-edge web design, circa 1994

Microsof’s home page in 1994... don’t cut yourself!A recently-departed (as in left for another company) coworker stopped by my desk on his last day to drop off a backup CD I had burned back in 2001. Today I popped it into the drive to see what curiosities lurked within. I was delighted to discover one of my trademark “Miscellany” folders, with a bunch of random stuff in it. Unquestionably the most interesting artifact was a screenshot of Microsoft’s website, as it appeared in 1994.

I’m simply at a loss to explain this design. Clearly many most all web designs from that early need to be cut a little slack, and I doubt any of them have truly aged well. But even through that lens, this site is inexplicably hideous.

I’m certainly not the first person to look back in time and mock this design, of course. But “usability guru” Jakob Nielsen used it in an article he wrote back at the time, and it’s still lingering on his site with a new introduction written in 1997. (Frighteningly enough, if the conclusion I draw from my brief perusal of the long and boring highly usable article is correct, he’s actually praising this design.) Personally I think Nielsen’s views are overrated, and that if he really knew as much about usability as he is supposed to, his website would look a lot different (and he’d also realize he no longer needs to cater to the bandwidth limitations of those running 28.8 kbps modems — but I digress; besides, these guys rip into him much better than I care to). But it’s still an interesting look back in time.

Google, you’ve failed me

Over the past few years, I’ve come to assume that any piece of information in the known universe is only a few keystrokes away, thanks to the wonders of Google.

So today, while wondering when the new Best Buy store at the Mall of America is opening, I naturally turned to Google, expecting an immediate answer.

For those of you now firing up Google in another browser tab, I’ll save you the trouble: try any combination of keywords you like, but you’re just not going to find this information.

Everything that came up for me is speculation from last summer, along the lines of “Best Buy to move into Mall of America?” Well no crap. I’ve seen the old Sports Authority storefront closed up with huge “Best Buy coming soon” signs all over it. It’s a done deal, and it’s probably just a matter of days or weeks before they open. The Best Buy logo was filled in a panel at a time, like puzzle pieces, but it’s all there now so it can’t be much longer. Not that I’ll ever know, thanks to Google.

Update (a few minutes later): Finally I gave up on the Best Buy-centric approach and just googled "Mall of America" "new stores" and found this page stating vaguely that the store will be opening in “late summer or early fall.” Boo.

Unnatural Disasters expanded edition now available!

Unnatural Disasters [Remastered] front coverLast week I finished a “remastered” version of my new album, Unnatural Disasters. Sure, it’s barely a month old, but I’m still perfecting my “studio” (such as it is) techniques, and even though this new version wasn’t done in time to become my official RPM Challenge submission, I consider it the definitive version of the album. I’ve also thrown in my secondary RPM project, Technetium, as a bonus track. (Sure, this bonus track is longer than all 9 tracks on the actual album combined, but it all still fits nicely onto one CD. You do miss out on the great cover art, though.)

The new versions of all of the tracks are now available here and on VIRB. Better yet, get a copy for yourself! It’s available as a name-your-own-price MP3 download on INDISTR or for $7.99 on CD from Kunaki.