Re: Cropping a large collection of .PNG screenshots

2014-04-30 Thread Johann Spies
On 9 April 2014 12:03, Kevin O'Gorman kogor...@gmail.com 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-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 instantaneous. I

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 kogor...@gmail.com 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

Re: Cropping a large collection of .PNG screenshots

2014-04-16 Thread Curt
On 2014-04-16, Alberto Luaces alua...@udc.es 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:

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 alua...@udc.es 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

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 kogor...@gmail.com 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)

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 kogor...@gmail.com 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

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 kogor...@gmail.com 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

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 than the

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 andreimpope...@gmail.com 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

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 andreimpope...@gmail.com 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

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 kogor...@gmail.com 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)

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:

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, email to

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Curt
On 2014-04-13, Andrei POPESCU andreimpope...@gmail.com 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 ]

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Jonathan Dowland
On 13 Apr 2014, at 11:33, Scott Ferguson scott.ferguson.debian.u...@gmail.com 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

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 andreimpope...@gmail.com wrote: On Sb, 12 apr 14, 12:26:48, Steve Litt wrote: On Thu, 10 Apr 2014 00:43:45 +0300 Andrei POPESCU andreimpope...@gmail.com wrote: On Mi, 09 apr 14, 08:59:51, Steve Litt wrote: Or, you can just

Re: Cropping a large collection of .PNG screenshots

2014-04-13 Thread Jonathan Dowland
On 13 Apr 2014, at 15:47, Steve Litt sl...@troubleshooters.com 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

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 andreimpope...@gmail.com 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

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 sl...@troubleshooters.com wrote: On Thu, 10 Apr 2014 00:43:45 +0300 Andrei POPESCU andreimpope...@gmail.com 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

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 height

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 cousinstan...@gmail.com 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

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 stated

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 cousinstan...@gmail.com 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

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

Re: Cropping a large collection of .PNG screenshots

2014-04-10 Thread Raffaele Morelli
2014-04-10 10:05 GMT+02:00 Alex Mestiashvili a...@biotec.tu-dresden.de: 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|

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

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. This is an

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

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

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 the

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 kogor...@gmail.com: 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 for

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 kogor...@gmail.com 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:

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

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 jobs

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

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) What's