Show More
@@ -145,7 +145,7 b' class ImageViewer(AbstractViewer):' | |||||
145 | def get_format_view(self): |
|
145 | def get_format_view(self): | |
146 | metadata = '{}, {}'.format(self.file.name.split('.')[-1], |
|
146 | metadata = '{}, {}'.format(self.file.name.split('.')[-1], | |
147 | filesizeformat(self.file.size)) |
|
147 | filesizeformat(self.file.size)) | |
148 |
width, height = get_image_dimensions(self.file. |
|
148 | width, height = get_image_dimensions(self.file.path) | |
149 | preview_path = self.file.path.replace('.', '.200x150.') |
|
149 | preview_path = self.file.path.replace('.', '.200x150.') | |
150 | pre_width, pre_height = get_image_dimensions(preview_path) |
|
150 | pre_width, pre_height = get_image_dimensions(preview_path) | |
151 |
|
151 |
General Comments 0
You need to be logged in to leave comments.
Login now