diff --git a/daemon_post_receive.py b/daemon_post_receive.py index 1c50cf924..8a760b28c 100644 --- a/daemon_post_receive.py +++ b/daemon_post_receive.py @@ -1929,7 +1929,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {}, print('DEBUG: image size before metadata removal ' + str(file_size_original) + ' and after ' + str(file_size_meta_data)) - if file_size_meta_data < file_size_watermark / 2: + if file_size_meta_data < file_size_original / 2: print('WARN: image metadata removal failed, ' + 'restoring backup') erase_file(filename, 'EX: ' + diff --git a/scripts/images b/scripts/images index 7b49bc55a..fe8930fed 100755 --- a/scripts/images +++ b/scripts/images @@ -1,5 +1,5 @@ #!/bin/bash -journalctl -u epicyon | grep 'image binary\|favicon is not an image\|image size before\|watermark failed\|image metadata removal\|media saved to' > .image.txt +journalctl -u epicyon | grep 'image binary\|favicon is not an image\|image size before\|watermark failed\|image metadata removal\|media saved to\|failed to restore backup image\|failed to rename image\|media could not be saved to\|failed to delete backup image' > .image.txt if [ ! -f .image.txt ]; then echo 'No image warnings' else