I never understood why subclass the image-class and not extend them with a decorator. It works, but you need the generate*() functions, too. Unfortunately they are not generated automatically (but afaik it's just a switch somewhere in sapphire):
class GalleryPic_Image extends DataObjectDecorator {
function generateSidebarThumbnail($gd) {
$gd->setQuality(85);
return $gd->paddedResize(65,65,'f3f3f3');
}
function SidebarThumbnail() {
return $this->owner->getFormattedImage('SidebarThumbnail');
}
}
This way i have a nice decorator and can reuse the images.
janulka: if you want to reuse them inside a html formfield, you can use shortcode handlers like shown for videos at ssbits. This way i easily embed galleries and single images inside an article.
HTH, Werner