|
|
@@ -135,13 +135,18 @@ def view_read(name = 'Test', doc_rev = '', doc_from = '', do_type = ''):
|
|
|
file_all_name = sha224_replace(file_name) + '.' + mime_type
|
|
|
file_path_name = os.path.join(load_image_url(), file_all_name)
|
|
|
if os.path.exists(file_path_name):
|
|
|
+ img = Image.open(file_path_name)
|
|
|
+ width, height = img.size
|
|
|
+
|
|
|
file_size = str(round(os.path.getsize(file_path_name) / 1000, 1))
|
|
|
+
|
|
|
file_data = '''
|
|
|
<img src="/image/''' + url_pas(file_all_name) + '''.cache_v''' + rev + '''">
|
|
|
<h2>''' + load_lang('data') + '''</h2>
|
|
|
<table>
|
|
|
<tr><td>URL</td><td><a href="/image/''' + url_pas(file_all_name) + '''">''' + load_lang('link') + '''</a></td></tr>
|
|
|
<tr><td>''' + load_lang('volume') + '''</td><td>''' + file_size + '''KB</td></tr>
|
|
|
+ <tr><td>''' + load_lang('resolution') + '''</td><td>''' + str(width) + 'x' + str(height) + '''</td></tr>
|
|
|
</table>
|
|
|
<h2>''' + load_lang('content') + '''</h2>
|
|
|
'''
|