diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py index 198e58d..67ec604 100644 --- a/distribusi/distribusi.py +++ b/distribusi/distribusi.py @@ -33,12 +33,12 @@ def thumbnail(image, name, args): size = (450, 450) im = Image.open(image) im.thumbnail(size) - + if (im.mode == 'RGBA'): bg = Image.new('RGBA', im.size, (255,255,255)) composite = Image.alpha_composite(bg, im) im=composite.convert('RGB') - + output = BytesIO() im.save(output, format='JPEG') im_data = output.getvalue() @@ -143,7 +143,7 @@ def distribusify(args, directory): # noqa print('Found', name, 'as', mime) if type_ in FILE_TYPES: - + a = FILE_TYPES[type_].format(name, caption) # expansion for different kind of text files @@ -168,7 +168,7 @@ def distribusify(args, directory): # noqa caption = "" if args.captions: caption = caption(full_path) - a = FILE_TYPES[type_].format(name, caption) + a = FILE_TYPES[type_].format(name, caption) if subtype in SUB_TYPES: a = SUB_TYPES[subtype] diff --git a/package-lock.json b/package-lock.json index 24f5d36..445581a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "distribusi-nodejs-server", - "version": "0.0.0", + "name": "expressive-distribusi-server", + "version": "0.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/run.sh b/run.sh index e17f0f5..dcd7875 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ #!/bin/bash -pip3 install -r py3/requirements.txt -python3 run.py -d ./data/ +pip install -r py3/requirements.txt +python run.py -d ./data/ -nf -s custom.css --no-hidden -v