Few know it: Zenphoto is the best web gallery CMS there is. It is minimalistic, fast and stable. It powers this bloggers photostream, and its pictures grace these posts. Zenphoto is so great because the process of cropping, scaling and managing image cache is elegant, excellent, awesome.
This plugin allows you to take that scaling- and cache-management with you to WordPress.
That means, and read this carefully: you can insert what amounts to a symbolic link to an ultra-high-res Zenphoto image, specify width and the height as an attribute and have Zenphoto do the scale work for you. Even if you replace the source image, you can just purge the Zenphoto cache — all images linked using this plugin will have their scaled versions updated from the new source material. Chew on that one for a while: it’s paradigm changing. That’s what it is.
Not the plugin, mind you, Zenphoto is paradigm changing. This plugin is just an enabler, minimalistic middle-ware. Once installed, in your WordPress posts and pages, you can write:
[zenphoto src="filename.jpg" width="600" album="album/subalbum"]
… and you’ll get a gorgous image of cows, provided you named the cow image “filename.jpg and placed it in an album called “subalbum which resides in the “album album:
[zenphoto src="pic156.jpg" width="600" album="photography/sweden"]
If you configure your default values correctly (you can provide defaults for widths and album), all you have to write is [raw]
Future plans include adding parameters for watermarks, a feature thats already in the Zenphoto core. It is with regret that I’ve had to add an options page. The only thing it does, is take your information as to where you installed Zenphoto (it has to know, it’s the only integration it has). Other than that, I’ve made things real simple; if you forget parameters or forget to configure the path, the plugin will show error messages reminding you what to do.
One last thing: this plugin is different from other Zenphoto / WordPress plugins, in that it adds a link to the image object, not the cached image. That means you get the benefit of being able to change the size as many times as you want, as you author your posts, by simply changing the parameters. Don’t worry about the cache, by the way, Zenphoto magic makes sure that if the linked image object has already been rendered in your cache, the cache is shown.
crop(options: tl, tr, bl, br for topleft, topright, bottomleft and bottomright)
Crop is currently partially implemented. If you enter it as a parameter,
crop="tl" crops the image so that it is unscaled, and top left aligned (hence tl). Also possible, tr, bl, br, for topright, bottomleft and bottom right. Works in conjuction with width and height parameters. The crop currently keeps the image unscaled.
Since version 1.8, the plugin adds a media button for inserting images directly from your zenphoto gallery. It makes inserting the shorttag symlinks really easily. You can also upload from this interface.
[Update]: Zenphoto Shorttags is no longer actively developed. Instead, I’m working on Image Symlinks, which can take the place of this plugin. Please contact me if you wish to adopt this plugin, though.