24 def initialize bindata
26 @lib =Magick::Image.from_blob(@binary).shift
32 r = PettanImager.new bindata
64 Digest::MD5.hexdigest(@binary)
76 @lib.flip.flop.to_blob
81 PettanImager.load @lib.to_blob
85 PettanImager.load(@lib.resize(*thumbnail_size).to_blob)
89 PettanImager.fix_size_both PettanImager.tmb_w, PettanImager.tmb_h, self.width, self.height
93 def self.thumbnail_size w, h
94 PettanImager.fix_size_both PettanImager.tmb_w, PettanImager.tmb_h, w, h
97 #サイズの調整(limw,limhに必ず収まるように合わせる)
98 def self.fix_size_both(limw, limh, w, h)