Re: using convert to batch convert

2001-08-09 Thread will trillich
On Thu, Aug 02, 2001 at 10:53:27AM -0400, Alan Shutko wrote: Miaoling Chiu [EMAIL PROTECTED] writes: Wow! I've been using Linux for a year, and even from the first week I have been trying (without success) to figure out how to do exactly that (ren *.doc *.txt). Someone else has

Re: using convert to batch convert

2001-08-02 Thread Miaoling Chiu
# for i in *.gif; do convert -sample 50% $i ${i%.gif}.png ...or even this, if he wants to keep gifs: ${i%.gif}_s.gif The former changes foo.gif to foo.png, the latter to foo_s.gif. Yay. May need quotes if there's spaces, may need some work in ridiculous cases, etc. It took me forever to find

Re: using convert to batch convert

2001-08-02 Thread James Preston
-BEGIN PGP SIGNED MESSAGE- On Wed, Aug 01, 2001 at 11:00:07PM -0700, Miaoling Chiu wrote: $ for i in *.gif do convert -sample 50% $i ${i%.gif}.png done ... careful. That assumes that the source image is completely read and closed before the output file is produced. Look up

Re: using convert to batch convert

2001-08-02 Thread James Preston
-BEGIN PGP SIGNED MESSAGE- On Thu, Aug 02, 2001 at 04:24:41PM +1000, James Preston wrote: On Wed, Aug 01, 2001 at 11:00:07PM -0700, Miaoling Chiu wrote: $ for i in *.gif do convert -sample 50% $i ${i%.gif}.png done ... careful. That assumes that the source image is

Re: using convert to batch convert

2001-08-02 Thread Martin Bialasinski
On Wed, 1 Aug 2001, Miaoling Chiu wrote: Hi, Wow! I've been using Linux for a year, and even from the first week I have been trying (without success) to figure out how to do exactly that (ren *.doc *.txt). install teh mmv package, then do mmv *.doc #1.txt Ciao, Martin

Re: using convert to batch convert

2001-08-02 Thread Alan Shutko
Miaoling Chiu [EMAIL PROTECTED] writes: Wow! I've been using Linux for a year, and even from the first week I have been trying (without success) to figure out how to do exactly that (ren *.doc *.txt). Someone else has already answered your specific question, but take a look at the book Unix

RE: using convert to batch convert

2001-08-02 Thread GARGIULO Eduardo INGDESI
Wow! I've been using Linux for a year, and even from the first week I have been trying (without success) to figure out how to do exactly that (ren *.doc *.txt). try ren doc txt - #!/bin/bash # ren oldextension=$1 echo Old extension:

Re: using convert to batch convert

2001-08-01 Thread Andrew Pritchard
Quoting Christopher S. Swingley [EMAIL PROTECTED]: The command I would expect to work: convert -sample 50% * Another method that I often use is: $ find ./ -name '*.gif' -exec convert -geometry 50% {} {}.png \; The {}'s are replaced by the filenames that 'find' found, one at a

Re: using convert to batch convert

2001-08-01 Thread Mike McGuire
On Wed, Aug 01, 2001 at 01:14:06PM +0100, Andrew Pritchard wrote: Quoting Christopher S. Swingley [EMAIL PROTECTED]: The command I would expect to work: convert -sample 50% * Another method that I often use is: $ find ./ -name '*.gif' -exec convert -geometry 50% {} {}.png

Re: using convert to batch convert

2001-08-01 Thread Rogério Brito
I haven't caught the beginning of this thread, but a nice Perl script that I use to generate digital albums is photoaddict, found at http://photoaddict.sourceforge.net/. It uses convert internally. Sorry if this has nothing to do with the original

Re: using convert to batch convert

2001-07-31 Thread Colin Watson
On Mon, Jul 30, 2001 at 05:40:06PM -0300, Miguel Griffa wrote: At 01:30 p.m. 30/07/01 -0700, Aaron Brashears wrote: The command I would expect to work: convert -sample 50% * only converts the last file in the directory, and converts it twice (!) to a filename with '.0' and '.0.0'

using convert to batch convert

2001-07-30 Thread Aaron Brashears
I have many, many images that I want to scale down using imagemagick's convert utility. The convert utility doesn't seem to work correctly unless you give it an output name per input filename, but the man page doesn't make it clear how to do this, and I'm stumped as to how to generate a new name

Re: using convert to batch convert

2001-07-30 Thread Miguel Griffa
At 01:30 p.m. 30/07/01 -0700, Aaron Brashears wrote: I have many, many images that I want to scale down using imagemagick's convert utility. The convert utility doesn't seem to work correctly unless you give it an output name per input filename, but the man page doesn't make it clear how to do

Re: using convert to batch convert

2001-07-30 Thread Christopher S. Swingley
The command I would expect to work: convert -sample 50% * Another method that I often use is: $ find ./ -name '*.gif' -exec convert -geometry 50% {} {}.png \; The {}'s are replaced by the filenames that 'find' found, one at a time. So this command would reduce the size of all GIF images

Re: using convert to batch convert

2001-07-30 Thread Peter S Galbraith
Aaron Brashears wrote: I have many, many images that I want to scale down using imagemagick's convert utility. The convert utility doesn't seem to work correctly unless you give it an output name per input filename, but the man page doesn't make it clear how to do this, and I'm stumped as to