Re: Using Python instead of Bash

2015-06-01 Thread Cecil Westerhof
Op Monday 1 Jun 2015 22:42 CEST schreef Laura Creighton: > In a message of Mon, 01 Jun 2015 21:57:05 +0200, Cecil Westerhof > writes: >>> Truly? That's (very close to) 7 inch by 9 inch, 177.8 mm x 228.6 >>> mm and 7 by 9 is what pre-metric Britian called 'Small Post >>> Quarto'. I wonder if this m

Re: Using Python instead of Bash

2015-06-01 Thread Laura Creighton
In a message of Mon, 01 Jun 2015 21:57:05 +0200, Cecil Westerhof writes: >> Truly? That's (very close to) 7 inch by 9 inch, 177.8 mm x 228.6 mm >> and 7 by 9 is what pre-metric Britian called 'Small Post Quarto'. >> I wonder if this merely a coincidence, or does some software really >> still like

Re: Using Python instead of Bash

2015-06-01 Thread Cecil Westerhof
Op Monday 1 Jun 2015 20:42 CEST schreef Laura Creighton: > In a message of Mon, 01 Jun 2015 18:44:01 +0200, Cecil Westerhof > writes: >> Op Monday 1 Jun 2015 17:44 CEST schreef Laura Creighton: >> >>> In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof >>> writes: Also the funny

Re: Using Python instead of Bash

2015-06-01 Thread Laura Creighton
In a message of Mon, 01 Jun 2015 18:44:01 +0200, Cecil Westerhof writes: >Op Monday 1 Jun 2015 17:44 CEST schreef Laura Creighton: > >> In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof >> writes: >>> Also the funny thing is that I first scanned it. But it gave >>> several problems.

Re: Using Python instead of Bash

2015-06-01 Thread Cecil Westerhof
Op Monday 1 Jun 2015 17:44 CEST schreef Laura Creighton: > In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof > writes: >> Also the funny thing is that I first scanned it. But it gave >> several problems. One of them was that it is a format between A4 >> and A5. Taking pictures is fa

Re: Using Python instead of Bash

2015-06-01 Thread Laura Creighton
In a message of Mon, 01 Jun 2015 12:44:34 +0200, Cecil Westerhof writes: >Also the funny thing is that I first scanned it. But it gave several >problems. One of them was that it is a format between A4 and A5. >Taking pictures is faster and gives better results. > >-- >Cecil Westerhof >Senior Softw

Re: Using Python instead of Bash

2015-06-01 Thread Grant Edwards
On 2015-05-31, Cecil Westerhof wrote: > I help someone that has problems reading. For this I take photo's of > text, use convert from ImageMagick to make a good contrast (original > paper is grey) and use lpr to print it a little bigger. > > Normally I would implement this in Bash, but I thought

Re: Using Python instead of Bash

2015-06-01 Thread Cecil Westerhof
Op Monday 1 Jun 2015 11:07 CEST schreef alister: > On Mon, 01 Jun 2015 11:06:33 +0300, Jussi Piitulainen wrote: > >> Larry Hudson writes: >> >>> On 05/31/2015 05:42 AM, Cecil Westerhof wrote: I help someone that has problems reading. For this I take photo's of text, use convert from Imag

Re: Using Python instead of Bash

2015-06-01 Thread Cecil Westerhof
Op Monday 1 Jun 2015 02:53 CEST schreef Dennis Lee Bieber: > On Sun, 31 May 2015 19:06:40 +0200, Cecil Westerhof > declaimed the following: > >> >> By the way: because of the lpr my script only works on Linux (and >> probably Unix and Apple). Can I rewrite it in such a way that it >> also works w

Re: Using Python instead of Bash

2015-06-01 Thread Marko Rauhamaa
Cecil Westerhof : > I am amazed about the technical progress: I did not know it was > possible to take a screen-shot from a booklet. Well, take a look at this video that demonstrates the possibilities of the technology: https://www.youtube.com/watch?v=MOXQo7nURs0 Marko -- https://mail.pyth

Re: Using Python instead of Bash

2015-06-01 Thread Cecil Westerhof
Op Monday 1 Jun 2015 09:56 CEST schreef Larry Hudson: > On 05/31/2015 05:42 AM, Cecil Westerhof wrote: >> I help someone that has problems reading. For this I take photo's >> of text, use convert from ImageMagick to make a good contrast >> (original paper is grey) and use lpr to print it a little

Re: Using Python instead of Bash

2015-06-01 Thread alister
On Mon, 01 Jun 2015 11:06:33 +0300, Jussi Piitulainen wrote: > Larry Hudson writes: > >> On 05/31/2015 05:42 AM, Cecil Westerhof wrote: >>> I help someone that has problems reading. For this I take photo's of >>> text, use convert from ImageMagick to make a good contrast (original >>> paper is gr

Re: Using Python instead of Bash

2015-06-01 Thread Jussi Piitulainen
Larry Hudson writes: > On 05/31/2015 05:42 AM, Cecil Westerhof wrote: >> I help someone that has problems reading. For this I take photo's of >> text, use convert from ImageMagick to make a good contrast (original >> paper is grey) and use lpr to print it a little bigger. >> > I''m wondering why y

Re: Using Python instead of Bash

2015-06-01 Thread Larry Hudson via Python-list
On 05/31/2015 05:42 AM, Cecil Westerhof wrote: I help someone that has problems reading. For this I take photo's of text, use convert from ImageMagick to make a good contrast (original paper is grey) and use lpr to print it a little bigger. I''m wondering why you bother to take a photo, which th

Re: Using Python instead of Bash

2015-06-01 Thread Laura Creighton
On Sun, 31 May 2015 19:06:40 +0200, Cecil Westerhof wrote: >> >>By the way: because of the lpr my script only works on Linux (and >>probably Unix and Apple). Can I rewrite it in such a way that it also >>works with Windows? Someone else has to test it then, because I do not >>have a Windows comput

Re: Using Python instead of Bash

2015-05-31 Thread Ethan Furman
Just for funsies, I did a slight rewrite using my scription[1] library: --8<-- #!/usr/bin/python3 """ Convert scanned images: contrast is increased, size is enlarged, format is changed from jpeg to png. """ from __future

Re: Using Python instead of Bash

2015-05-31 Thread Cameron Simpson
On 31May2015 11:05, Dennis Lee Bieber wrote: I'll concede submitting jobs to a print queue probably does work easier this way, but I'd have to ask if the "convert" could be performed using actual Python -- the old Python Imaging Library -- PIL -- for example (superseded, I think, by pill

Re: Using Python instead of Bash

2015-05-31 Thread Cecil Westerhof
Op Sunday 31 May 2015 17:05 CEST schreef Dennis Lee Bieber: > On Sun, 31 May 2015 14:42:02 +0200, Cecil Westerhof > declaimed the following: > >> I help someone that has problems reading. For this I take photo's >> of text, use convert from ImageMagick to make a good contrast >> (original paper i

Re: Using Python instead of Bash

2015-05-31 Thread Cecil Westerhof
Op Sunday 31 May 2015 16:02 CEST schreef Alain Ketterlin: > Cecil Westerhof writes: > >> I help someone that has problems reading. For this I take photo's >> of text, use convert from ImageMagick to make a good contrast >> (original paper is grey) and use lpr to print it a little bigger. > >> imp

Re: Using Python instead of Bash

2015-05-31 Thread Cecil Westerhof
Op Sunday 31 May 2015 16:14 CEST schreef Cem Karan: >> I help someone that has problems reading. For this I take photo's >> of text, use convert from ImageMagick to make a good contrast >> (original paper is grey) and use lpr to print it a little bigger. >> >> Normally I would implement this in Ba

Re: Using Python instead of Bash

2015-05-31 Thread Cem Karan
> I help someone that has problems reading. For this I take photo's of > text, use convert from ImageMagick to make a good contrast (original > paper is grey) and use lpr to print it a little bigger. > > Normally I would implement this in Bash, but I thought it a good idea > to implement it in Pyt

Re: Using Python instead of Bash

2015-05-31 Thread Alain Ketterlin
Cecil Westerhof writes: > I help someone that has problems reading. For this I take photo's of > text, use convert from ImageMagick to make a good contrast (original > paper is grey) and use lpr to print it a little bigger. > import glob > import subprocess > > treshold = 66 > co

Using Python instead of Bash

2015-05-31 Thread Cecil Westerhof
I help someone that has problems reading. For this I take photo's of text, use convert from ImageMagick to make a good contrast (original paper is grey) and use lpr to print it a little bigger. Normally I would implement this in Bash, but I thought it a good idea to implement it in Python. This is