Is it possible to show file size for image ?

jobfr

Joined: 2005-04-28
Posts: 2
Posted: Thu, 2005-04-28 11:29

Hello,
As we can show the date or the owner, I wonder if there is an option in Gallery2 for showing file size for image ?
It can be helpful when you want to download an image.
Thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-28 14:08

for all non-album items (images, videos, ...) you can get the filesize with $item->getSize(). So yes. You just have to modify the template.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-28 14:37

in a local tpl file you can use {$layout.item.size} or {$child.size} depending on where you're using it.