コード例 #1
0
ファイル: models.py プロジェクト: piotrek-golda/CivilHubCopy
 def retina_image_height(self):
     """ Same as above but the height is return for retina. """
     return get_image_size(self.image.path)[1] * 2
コード例 #2
0
ファイル: models.py プロジェクト: piotrek-golda/CivilHubCopy
 def image_height(self):
     """ Returns the height in pixels of the base image."""
     return get_image_size(self.image.path)[1]
コード例 #3
0
 def retina_image_height(self):
     """ Jak powyżej, ale zwracamy wysokość obrazka pod retinę. """
     return get_image_size(self.image.path)[1] * 2
コード例 #4
0
 def image_height(self):
     """ Zwraca wysokość w pikselach podstawowego obrazu. """
     return get_image_size(self.image.path)[1]
コード例 #5
0
 def retina_image_height(self):
     """ Same as above but the height is return for retina. """
     return get_image_size(self.image.path)[1] * 2
コード例 #6
0
 def image_height(self):
     """ Returns the height in pixels of the base image."""
     return get_image_size(self.image.path)[1]