Skip to main content
7 events
when toggle format what by license comment
Dec 20, 2018 at 22:03 vote accept user3169
Dec 19, 2018 at 23:12 comment added Steve Barnes The recommended shebang is #!/usr/bin/env python3 as the first line a #encoding utf-8 second line is usually recommended
Dec 19, 2018 at 20:32 comment added user3169 Thanks. It works as advertised. Due to the number of commands, I would like to consider a shell script to run it. I wrote one (basically yours above with #!/bin/python3.5 as the first line), marked it as executable but no run option on double-click and couldn't run in terminal. No doubt I am doing something wrong.
Dec 19, 2018 at 6:06 comment added Steve Barnes @user3169 Added working code that just needs the directory names changed to fit you ones, note that it assumes that each filename is unique, it does not overwrite the existing files.
Dec 19, 2018 at 5:47 history edited Steve Barnes CC BY-SA 4.0
Added example code
Dec 19, 2018 at 3:51 comment added user3169 I installed python-pil and tried the script in the top answer, but got an error. I put the result on Pastebin. Maybe I'm missing something? Also I would need to know how to code the loop.
Dec 18, 2018 at 6:22 history answered Steve Barnes CC BY-SA 4.0