From 65247e3bab49ca7e0de312183fe92c6ce87b97f9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 13 Aug 2021 18:43:19 +0100 Subject: [PATCH] Debug --- media.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media.py b/media.py index e062cc773..bfb6a87e8 100644 --- a/media.py +++ b/media.py @@ -121,6 +121,7 @@ def _convertImageToLowBandwidth(imageFilename: str) -> None: '/usr/bin/convert -resize 50% +noise Multiplicative ' + \ '-evaluate median 10% -dither Floyd-Steinberg ' + \ '-monochrome ' + imageFilename + ' ' + imageFilename + print('Low bandwidth image conversion: ' + cmd) subprocess.call(cmd, shell=True) @@ -272,7 +273,7 @@ def attachMedia(baseDir: str, httpPrefix: str, if baseDir: if mediaType.startswith('image/'): - if lowBandwidth: + if lowBandwidth: _convertImageToLowBandwidth(imageFilename) processMetaData(baseDir, nickname, domain, imageFilename, mediaFilename, city)