Feature request: add size to gallery file properties

I want to show gallery as filelist with name, size, upload date and possibly image dimensions. All of that but file size can be accessed using placeholders from mgGetImages snippet.
Looking into database, file size is not even in moregallery_image table. This should be quite simple to add to database upon file upload and then retrieve using mgGetImages.
Sometimes file size is in EXIF, but not always (and there can be non-images as well).

There are [[+width]] and [[+height]] placeholders to use for that already.

I know that, what I mean is missing physical file size.

Ahhh gotcha, your mention of image dimensions confused me. Yeah we don’t currently expose that. I’ll see what we can do.

Added to 1.18, releasing Soon™.

[[+filesize_original]] - will backfill that for old images and save it on upload for new ones.

It’s an integer in bytes. If you also use ContentBlocks, [[+filesize_original:cbFileFormatSize]] is an easy way to format that nicely.

1 Like