Re: Cropping a large collection of .PNG screenshots

2014-04-29 Thread Johann Spies
On 9 April 2014 12:03, Kevin O'Gorman wrote: > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: > A) What's the best tool

Re: Cropping a large collection of .PNG screenshots

2014-04-23 Thread Alberto Luaces
Slavko writes: > Ahoj, > > Dňa Wed, 16 Apr 2014 09:20:54 +0200 Alberto Luaces > napísal: > >> In order to get the clipping coordinates, "display" from the same >> package bringing "convert" can be used: press "c" and then drag the >> mouse to define the region. >> >> "display" loading is almost i

Re: Cropping a large collection of .PNG screenshots

2014-04-16 Thread Slavko
Ahoj, Dňa Wed, 16 Apr 2014 09:20:54 +0200 Alberto Luaces napísal: > In order to get the clipping coordinates, "display" from the same > package bringing "convert" can be used: press "c" and then drag the > mouse to define the region. > > "display" loading is almost instantaneous. I didn't know

Re: Cropping a large collection of .PNG screenshots

2014-04-16 Thread Curt
On 2014-04-16, Alberto Luaces wrote: > > "display" loading is almost instantaneous. > Whereas the gimp is gimpy. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/slr

Re: Cropping a large collection of .PNG screenshots

2014-04-16 Thread Alberto Luaces
Slavko writes: > Ahoj, > > Dňa Tue, 15 Apr 2014 03:48:29 -0700 "Kevin O'Gorman" > napísal: > >> SOLVED. Thanks to whoever gave me the clue that convert(1) could do >> the cropping. That and 2 bash scripts do all the work. > > See this > https://www.ibm.com/developerworks/community/blogs/waldens

Re: Cropping a large collection of .PNG screenshots

2014-04-15 Thread Slavko
Ahoj, Dňa Tue, 15 Apr 2014 03:48:29 -0700 "Kevin O'Gorman" napísal: > SOLVED. Thanks to whoever gave me the clue that convert(1) could do > the cropping. That and 2 bash scripts do all the work. See this https://www.ibm.com/developerworks/community/blogs/waldensponderings/entry/2_fer_friday_c

Re: Cropping a large collection of .PNG screenshots

2014-04-15 Thread Patrick Bartek
On Tue, 15 Apr 2014, Kevin O'Gorman wrote: > On Wed, Apr 9, 2014 at 3:03 AM, Kevin O'Gorman > wrote: > > I have a few hundred screen shots I want to put on a web page, but > > they are all full-screen and I want to crop to the real contents. > > This is an identical region in all cases. So I wan

Re: Cropping a large collection of .PNG screenshots

2014-04-15 Thread Kevin O'Gorman
On Wed, Apr 9, 2014 at 3:03 AM, Kevin O'Gorman wrote: > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: > A) What's the b

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Jonathan Dowland
> On 13 Apr 2014, at 15:47, Steve Litt wrote: > > Quick, relatively safe, and mistake-resistant, and without the immense > downside risk of various one-liners. Another advantage, and a short coming of developing shell scripts I'd love to see addressed one day: you can iteratively develop, tes

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Steve Litt
On Sun, 13 Apr 2014 13:21:19 +0300 Andrei POPESCU wrote: > On Sb, 12 apr 14, 12:26:48, Steve Litt wrote: > > On Thu, 10 Apr 2014 00:43:45 +0300 > > Andrei POPESCU wrote: > > > > > On Mi, 09 apr 14, 08:59:51, Steve Litt wrote: > > > > > > > > Or, you can just redirect ls into a file, use Vim to

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Jonathan Dowland
> On 13 Apr 2014, at 11:33, Scott Ferguson > wrote: > > for i in `ls *.png`; Never parse the output of ls. for i in *.png; -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.d

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Curt
On 2014-04-13, Andrei POPESCU wrote: > >> for i in `ls *.png`; > > Is there something wrong with > > for i in *.png According to this, there is everything right: http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29 # POSIX for i in *.png; do [ -e "$i" ] || continue s

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Scott Ferguson
On 13/04/14 22:05, Andrei POPESCU wrote: > On Du, 13 apr 14, 20:33:00, Scott Ferguson wrote: >> >> for i in `ls *.png`; > > Is there something wrong with > > for i in *.png > > ? Yes. It leaves no room for improvement. > > Kind regards, > Andrei > Kind regards -- To UNSUBSCRIBE, emai

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Andrei POPESCU
On Du, 13 apr 14, 20:33:00, Scott Ferguson wrote: > > for i in `ls *.png`; Is there something wrong with for i in *.png ? Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listin

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread shawn wilson
On Wed, Apr 9, 2014 at 6:03 AM, Kevin O'Gorman wrote: > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: > A) What's the b

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Scott Ferguson
On 13/04/14 20:21, Andrei POPESCU wrote: > On Sb, 12 apr 14, 12:26:48, Steve Litt wrote: >> On Thu, 10 Apr 2014 00:43:45 +0300 >> Andrei POPESCU wrote: >> >>> On Mi, 09 apr 14, 08:59:51, Steve Litt wrote: Or, you can just redirect ls into a file, use Vim to convert and rename each f

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Andrei POPESCU
On Sb, 12 apr 14, 12:26:48, Steve Litt wrote: > On Thu, 10 Apr 2014 00:43:45 +0300 > Andrei POPESCU wrote: > > > On Mi, 09 apr 14, 08:59:51, Steve Litt wrote: > > > > > > Or, you can just redirect ls into a file, use Vim to convert and > > > rename each file individually. > > > > Could you plea

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Cousin Stanley
>> # convert source -crop widthxheight+wo+ho target > Ah, gotcha. No problem. In the specific case of cropping, > it's pretty simple; other tasks, maybe the balance would > be tipped the other way. > > In any case, it's only because of familiarity; I'll reach > for the hammer I know rather th

Re: Cropping a large collection of .PNG screenshots

2014-04-12 Thread Chris Angelico
On Sun, Apr 13, 2014 at 1:42 PM, Cousin Stanley wrote: >> >> convert -crop whatever $fn.bak $fn >> >> But that's assuming you know how to use >> 'convert -crop' to do what you want, which I don't. > > This is the part of your post > that I was attempting to address > and hopefully, clar

Re: Cropping a large collection of .PNG screenshots

2014-04-12 Thread Cousin Stanley
> > convert -crop whatever $fn.bak $fn > > But that's assuming you know how to use > 'convert -crop' to do what you want, which I don't. This is the part of your post that I was attempting to address and hopefully, clarify the use of the geometry argument to -crop since you stat

Re: Cropping a large collection of .PNG screenshots

2014-04-12 Thread Chris Angelico
On Sun, Apr 13, 2014 at 5:48 AM, Cousin Stanley wrote: >> Personally, I'd whip up a quick Pike script > > # I think you also sprechen der python :-) > > #!/usr/bin/env python > > import subprocess as SP > process = SP.Popen( args , shell = False ) > That's still calling on convert, though;

Re: Cropping a large collection of .PNG screenshots

2014-04-12 Thread Cousin Stanley
> for fn in *.png; do mv $fn $fn.bak; convert -crop whatever $fn.bak $fn; done > > But that's assuming you know how to use 'convert -crop' > to do what you want, which I don't. > # convert source -crop geometry target # # geometry : width x height + w_offset + h_offset # # width x heig

Re: Cropping a large collection of .PNG screenshots

2014-04-12 Thread Chris Angelico
On Sun, Apr 13, 2014 at 2:26 AM, Steve Litt wrote: > On Thu, 10 Apr 2014 00:43:45 +0300 > Andrei POPESCU wrote: > >> On Mi, 09 apr 14, 08:59:51, Steve Litt wrote: >> > >> > Or, you can just redirect ls into a file, use Vim to convert and >> > rename each file individually. >> >> Could you please

Re: Cropping a large collection of .PNG screenshots

2014-04-12 Thread Steve Litt
On Thu, 10 Apr 2014 00:43:45 +0300 Andrei POPESCU wrote: > On Mi, 09 apr 14, 08:59:51, Steve Litt wrote: > > > > Or, you can just redirect ls into a file, use Vim to convert and > > rename each file individually. > > Could you please elaborate on this? ls -1 *.png > doit.sh chmod a+x doit.sh g

Re: Cropping a large collection of .PNG screenshots

2014-04-10 Thread Scott Ferguson
On 11/04/14 05:07, Ric Moore wrote: > On 04/09/2014 10:09 PM, Chris Bannister wrote: >> On Wed, Apr 09, 2014 at 03:03:14AM -0700, Kevin O'Gorman wrote: >>> I have a few hundred screen shots I want to put on a web page, but >>> they are all full-screen and I want to crop to the real contents. >>> Th

Re: Cropping a large collection of .PNG screenshots

2014-04-10 Thread Ric Moore
On 04/09/2014 10:09 PM, Chris Bannister wrote: On Wed, Apr 09, 2014 at 03:03:14AM -0700, Kevin O'Gorman wrote: I have a few hundred screen shots I want to put on a web page, but they are all full-screen and I want to crop to the real contents. This is an identical region in all cases. So I want

Re: Cropping a large collection of .PNG screenshots

2014-04-10 Thread Raffaele Morelli
2014-04-10 10:05 GMT+02:00 Alex Mestiashvili : > On 04/09/2014 11:03 PM, Jonathan Dowland wrote: > >> On Wed, Apr 09, 2014 at 03:12:40PM +0200, Alex Mestiashvili wrote: >> >>> | >>> find . -name "*.png" | parallel -P8 convert -quality 95 {} -geometry >>> 1280 /tmp/{.}.jpg| >>> >> Alternatively >

Re: Cropping a large collection of .PNG screenshots

2014-04-10 Thread Alex Mestiashvili
On 04/09/2014 11:03 PM, Jonathan Dowland wrote: On Wed, Apr 09, 2014 at 03:12:40PM +0200, Alex Mestiashvili wrote: | find . -name "*.png" | parallel -P8 convert -quality 95 {} -geometry 1280 /tmp/{.}.jpg| Alternatively find . -name "*.png" -exec convert -quality 95 {} -geometry 1280 /tmp/{}

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Chris Bannister
On Wed, Apr 09, 2014 at 03:03:14AM -0700, Kevin O'Gorman wrote: > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: > A) Wh

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Andrei POPESCU
On Mi, 09 apr 14, 08:59:51, Steve Litt wrote: > > Or, you can just redirect ls into a file, use Vim to convert and rename > each file individually. Could you please elaborate on this? Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and d

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Jonathan Dowland
On Wed, Apr 09, 2014 at 03:12:40PM +0200, Alex Mestiashvili wrote: > | > find . -name "*.png" | parallel -P8 convert -quality 95 {} -geometry 1280 > /tmp/{.}.jpg| Alternatively find . -name "*.png" -exec convert -quality 95 {} -geometry 1280 /tmp/{}.jpg + note '+' not '\;' which denotes to run

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Alex Mestiashvili
On 04/09/2014 12:03 PM, Kevin O'Gorman wrote: I have a few hundred screen shots I want to put on a web page, but they are all full-screen and I want to crop to the real contents. This is an identical region in all cases. So I want to script it. So, 2 questions: A) What's the best tool for the j

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Steve Litt
On Wed, 9 Apr 2014 03:03:14 -0700 "Kevin O'Gorman" wrote: > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: > A) What's

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread HdV
On 2014-04-09 03:03:14 Kevin O'Gorman wrote: > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: > A) What's the best tool

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Raffaele Morelli
2014-04-09 12:03 GMT+02:00 Kevin O'Gorman : > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: > A) What's the best tool f

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Scott Ferguson
On 09/04/14 20:03, Kevin O'Gorman wrote:> I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. > > So, 2 questions: A) What's the best tool for th

Re: Cropping a large collection of .PNG screenshots

2014-04-09 Thread Gian Uberto Lauri
Kevin O'Gorman writes: > I have a few hundred screen shots I want to put on a web page, but > they are all full-screen and I want to crop to the real contents. > This is an identical region in all cases. So I want to script it. If it's really the identical region of the screen I wold consider

Cropping a large collection of .PNG screenshots

2014-04-09 Thread Kevin O'Gorman
I have a few hundred screen shots I want to put on a web page, but they are all full-screen and I want to crop to the real contents. This is an identical region in all cases. So I want to script it. So, 2 questions: A) What's the best tool for the job? Gimp, irfanview, or something else? B) Is t