K4kArot2015 / sigplus

Automatically exported from code.google.com/p/sigplus
0 stars 0 forks source link

Image title template parametr {filesize} #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
Is it possible to use a parameter displays the size of the image file?
Regards!

Original issue reported on code.google.com by ten.mari...@gmail.com on 18 Sep 2013 at 1:57

GoogleCodeExporter commented 9 years ago
This is currently not supported. Part of the caption template replacement is 
delegated to a script that runs in the browser (rather than on the server), 
where the raw file size (as stored in the server's file system) is no longer 
directly accessible data. This data would have to be propagated to the browser 
script, which makes this feature request have a ripple effect.

Original comment by huny...@gmail.com on 22 Sep 2013 at 6:46

GoogleCodeExporter commented 9 years ago
Implemented in sigplus version 1.5.0.193 with the template placeholder 
{$filesize}.

Original comment by huny...@gmail.com on 6 Oct 2013 at 7:09

GoogleCodeExporter commented 9 years ago
Great!
Two notes:
1 information in the tooltip does not specify this parameter {$filesize}.
2 File size is given in bytes? Should be in MB or KB with a display for the 
unit.
Unless you set it up in plugin?

Regards!

Original comment by ten.mari...@gmail.com on 7 Oct 2013 at 4:34

GoogleCodeExporter commented 9 years ago
How to display the value of {filesize} in MB?

Original comment by ten.mari...@gmail.com on 4 Nov 2013 at 2:07

GoogleCodeExporter commented 9 years ago
sigplus version 1.5.0.194 and later displays the size in natural units, with 
three significant digits of precision.

Original comment by huny...@gmail.com on 5 Nov 2013 at 12:42

GoogleCodeExporter commented 9 years ago
Thank you. Display file size is good and necessary. In my view, individuals 
should, however, be more understandable to humans in order for this to make 
sense.Please consider the possibility of controlling units such as {$ 
filesizemb}, {$ filesizekb}.
Regards!

Original comment by ten.mari...@gmail.com on 5 Nov 2013 at 6:13