comparison mgtool.php @ 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
comparison
equal deleted inserted replaced
315:8a69e693e08c 316:af5ce7bf7eeb
316 } 316 }
317 317
318 // Parse the EXIF from the temp file 318 // Parse the EXIF from the temp file
319 $exif = @exif_read_data($tmpFile); 319 $exif = @exif_read_data($tmpFile);
320 fclose($tmpFile); 320 fclose($tmpFile);
321
322 // We need to fix the FileSize data as size comes from the temp file
323 if (is_array($exif))
324 {
325 $exif["FileSize"] = $fileData["size"];
326 }
321 327
322 $done++; 328 $done++;
323 } 329 }
324 else 330 else
325 if ($chunk["id1"] == 0x58 && $chunk["id2"] == 0x4d && 331 if ($chunk["id1"] == 0x58 && $chunk["id2"] == 0x4d &&