@Hein:
I can reproduce your issue when I install other plugins at the same time (e. g. EnlargeIt! v0.3) and play with the plugin order. Seems to me like thumb manipulation conflicts. But I still have no idea why it happens.
@Joachim:
I like the idea of rounded borders, a shadow would be nice as well. I already tried to code this, but it would require alpha transparency in the png files, and different php/gd versions handle this quite different, and some browsers (the terrible IE6 for example) cannot display them anyways, so I dropped the idea.
What's still missing is the correct sizes of the manipulated thumbs; ATM, they have the size of the original ones and are displayed scaled down. thumb_rotate_image_create should return the sizes of the generated thumb, so it can be saved to the plugin table together with the thumb name:
function thumb_rotate_image_create($CURRENT_PIC_DATA) {
...
...
...
// rotate image
$rotate = imagerotate($finalimg, $degrees, $fin_bg);
$finalsizex = imagesx($rotate);
$finalsizey = imagesy($rotate);
// set transparency
imagecolortransparent($rotate, $fin_bg);
// deliver png and save to cache
$result = imagepng($rotate, $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CONFIG['plugin_thumb_rotate_thumb_pfx'] . $CURRENT_PIC_DATA['filename_without_extension'] . '.png');
if ($result) {
$return = array($CURRENT_PIC_DATA['filepath'] . $CONFIG['plugin_thumb_rotate_thumb_pfx'] . $CURRENT_PIC_DATA['filename_without_extension'] . '.png', $finalsizex, $finalsizey);
} else {
$return = '';
}