Mercurial > hg > mgallery
changeset 316:af5ce7bf7eeb
Fix EXIF FileSize field for WebP files.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Apr 2020 19:40:06 +0300 |
parents | 8a69e693e08c |
children | d66caa602023 |
files | mgtool.php |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mgtool.php Mon Apr 06 19:05:49 2020 +0300 +++ b/mgtool.php Mon Apr 06 19:40:06 2020 +0300 @@ -319,6 +319,12 @@ $exif = @exif_read_data($tmpFile); fclose($tmpFile); + // We need to fix the FileSize data as size comes from the temp file + if (is_array($exif)) + { + $exif["FileSize"] = $fileData["size"]; + } + $done++; } else