コード例 #1
0
ファイル: fill.py プロジェクト: thumbor/thumbor
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     red, green, blue = _fill.apply(mode, data)
     return "%02x%02x%02x" % (  # pylint: disable=consider-using-f-string
         red,
         green,
         blue,
     )
コード例 #2
0
ファイル: fill.py プロジェクト: robolson/thumbor
 def get_median_color(self):
     r, g, b = _fill.apply(self.engine.get_image_mode(), self.engine.get_image_data())
     return '%02x%02x%02x' % (r, g, b)
コード例 #3
0
ファイル: fill.py プロジェクト: rkmax/thumbor
 def get_median_color(self):
     r, g, b = _fill.apply(self.engine.get_image_mode(), self.engine.get_image_data())
     return "%02x%02x%02x" % (r, g, b)
コード例 #4
0
ファイル: fill.py プロジェクト: 5um1th/thumbor
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     r, g, b = _fill.apply(mode, data)
     return '%02x%02x%02x' % (r, g, b)
コード例 #5
0
ファイル: fill.py プロジェクト: starsw001/thumbor-1
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     r, g, b = _fill.apply(mode, data)
     return '%02x%02x%02x' % (r, g, b)
コード例 #6
0
 def get_median_color(self):
     mode, data = self.engine.image_data_as_rgb()
     red, green, blue = _fill.apply(mode, data)
     return "%02x%02x%02x" % (red, green, blue)
コード例 #7
0
ファイル: fill.py プロジェクト: chicovisck/thumbor
 def get_median_color(self):
     r, g, b = _fill.apply(self.engine.get_image_mode(), self.engine.get_image_data())
     return '{:02x}{:02x}{:02x}'.format(r, g, b)
コード例 #8
0
ファイル: json_engine.py プロジェクト: rfloriano/thumbor
 def _get_rgb(self):
     if self._rgb:
         return self._rgb
     mode, data = self.image_data_as_rgb()
     self._rgb = _fill.apply(mode, data)
     return self._rgb