Malte,
This looks good.
Any interest in making this reusable by updating the image-procs.tcl in the content repository to use this (conditionall, and fall back to exec convert when tclmacgick is not available)?
If you can't do it, I'll put it on my list (eventually some of the things on there get done!)