Either that or I think that information is exposed as a variable in Smarty. Put your gallery into debug mode and you'll see a Smarty Debug popup window. Then you'll see what's available there.
If you need more guidance let us know.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
diegosanchez
Joined: 2009-12-07
Posts: 54
Posted: Thu, 2010-04-15 15:00
cant see any module in the plugins and cant find a variable.
i got a piece of script though but it shows the file size in bytes and not kb.
Thanks, iv changed that entire part now which seems to have done the job but i have changed it quite a bit especially the IF statement. it works but can you confirm?
I need exactly the same: On the picture details page a field where the image size is shown. Unfortunately I can't find a filesize module - searched few places like http://codex.gallery2.org/Gallery2:Modules or http://codex.gallery2.org/Gallery2:User_Contributions - can anybody give me a hint? I've already activated the EXIF Info module and just another field with the size would be perfect for me. Thanks a lot!
suprsidr
Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-12-03 13:41
Quote:
On the picture details page a field where the image size is shown
Just under that block add:
{$theme.item.size}
this will be in bytes so do your own math if you need it converted.
like above: {$theme.item.size|fsize_format:"KB"}
Posts: 27300
I think there is a filesize module
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 16504
Either that or I think that information is exposed as a variable in Smarty. Put your gallery into debug mode and you'll see a Smarty Debug popup window. Then you'll see what's available there.
If you need more guidance let us know.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 54
cant see any module in the plugins and cant find a variable.
i got a piece of script though but it shows the file size in bytes and not kb.
is there any other way?
The Code : {$child.size}
Posts: 27300
http://gallery.menalto.com/node/66136
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 54
sorry to pull this up again
but i cant seem to get this working. i only want to see the filesize of images within the album.
eg. if i had an album called PARTY, and i were in that album and seen a page full of thumbnails of the images id like to see the filesizes of them.
how or where would i place {$theme.item.size|fsize_format:"KB"}
also my values shown are all 0.00
thanks
Posts: 54
ok changed it to {$child.size|fsize_format:"MB"} instead of theme.item and it works
but i cant seem to get it to show just on thumbnails only
Posts: 16504
What template file did you modify?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 54
matrix template.
i was hoping there was an if statement so it shown filesizes on the actual images themselves and not the albums
Posts: 27300
There is more than one template in the matrix theme. Adding {$child.size} to album.tpl in the foreach loop works for me.
Did you clear cache?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 54
sorry dave
in the album.tpl which loop exactly?
thanks
ps.
here is the script im using at the moment
<p class="giInfo">
{$child.size|fsize_format:"KB"}
</p>
i thought i may of needed an IF statement so that IF it were a photothumbnail and not an album thumbnail then the the Item Size wouldnt show.
Posts: 27300
There is a IF check already in the loop:
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 54
Thanks, iv changed that entire part now which seems to have done the job but i have changed it quite a bit especially the IF statement. it works but can you confirm?
Posts: 27300
If it works it works.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 46
I need exactly the same: On the picture details page a field where the image size is shown. Unfortunately I can't find a filesize module - searched few places like http://codex.gallery2.org/Gallery2:Modules or http://codex.gallery2.org/Gallery2:User_Contributions - can anybody give me a hint? I've already activated the EXIF Info module and just another field with the size would be perfect for me. Thanks a lot!
Posts: 8339
Just under that block add:
this will be in bytes so do your own math if you need it converted.
like above: {$theme.item.size|fsize_format:"KB"}
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2