that code isnt that brill.
I did write some code , experimental to create hard coded rounded thumbs, it;s in medlib but it had a lil prob with some that got cought up int he transparency ont he edge
its not the best.
i found a lil class that has uses gd and has a couple of thumbnail effetc,s rounding, shadows etc. without CSS.
I might add it to medlib with options to add the effects to thumbnails.
However it is always possible to do all of that with CSS. It's an arguement which is better for the same effect, hard coding and creating it, or css?