Wes gave me the go-ahead to write a bit about his work on this and put it up for download. Additionally, I’ve modified the scripts I had originally written that used the python tools so they work with Wes’s ZoomifyFileProcessor class.
Batch converting images to the zoomify format
Besides consolidating a few files, the code and functionality of my old “wrapper” scripts
hasn’t changed from when they employed the python tools to do the heavy lifting. The big difference is that we no longer have to rely on system calls and command line execution. So, provided you are running a relatively up to date version of PHP (compiled with GD), no more libraries to install, or packages to upgrade.
What this means for us is that we can finally do web based image processing. Using Wes’s port and a few additional utility functions, we can set up an interface that will let us convert a directory of images into a format that can be loaded into the flash based Zoomify image viewer.
Safe mode, and GD image size limits
If you are running under safe mode, note that you’ll have to be authenticated (i.e. with HTTP Auth) as the owner of the directory that ZoomifyFileProcessor is writing to. If you are using groups, you may also need to jump through some more hoops.
I think I’ve run into a few issues on some systems processing images using the GD Library. It appears that GD sometimes has problems with images over a certain dimensional size (as opposed to file size). I haven’t been able to confirm this, or test it extensively, so it’s just a hunch. Your mileage may vary.
The relevant files are listed below: