ResourcePicture.resize(rimg.to_blob, tw, th).to_blob
end
- def opt_img_tag
+ def tmb_opt_img_tag
tw, th = PettanImager.thumbnail_size(self.width, self.height)
{:src => self.url, :width => tw, :height => th}
end
+ def opt_img_tag
+ {:src => self.url('full'), :width => self.width, :height => self.height}
+ end
+
def self.default_page_size
25
end