#NEWLINE# def get_rgb_image_as_bytes( self , format = 'png' , quality = 90 ) : #NEWLINE# #INDENT# ibuf = self . get_rgb_image_as_buffer ( format = format , quality = quality ) #NEWLINE# return bytes ( ibuf . getvalue ( ) )