From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2357 invoked from network); 25 Apr 2007 22:27:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Apr 2007 22:27:09 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 39779 invoked from network); 25 Apr 2007 22:27:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Apr 2007 22:27:03 -0000 Received: (qmail 19793 invoked by alias); 25 Apr 2007 22:26:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11450 Received: (qmail 19783 invoked from network); 25 Apr 2007 22:26:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Apr 2007 22:26:53 -0000 Received: (qmail 38390 invoked from network); 25 Apr 2007 22:26:53 -0000 Received: from mu-out-0910.google.com (209.85.134.188) by a.mx.sunsite.dk with SMTP; 25 Apr 2007 22:26:47 -0000 Received: by mu-out-0910.google.com with SMTP id w9so396838mue for ; Wed, 25 Apr 2007 15:26:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MCQHrGmgGktuoZFCrvsn1JIpOV3PgTDF83RGiNYvuIRP+CDvOBTPwoE3S2+Tysj2fiwqpOFepLJoBXYJqJAmWa1dThCNMtLrDiytceJBA7io9I1nvkR0jK7bLjn1d6kZKSHCI9lFk9UWRaeHNzp/P0VSX29IDOHGk2YI5svtA2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XUCY2FAwJ0coymEqbQSQ3onhw06IDmuRY31rsr6BOVe2yzcclGjVKxGFt+rYcCibhVjKpHz0j8pc9zfF8UuRGAdrkAECB44KUx8WsIxL7O6Dbv4D7ZoAPDQPQU8A2gI+8JbL2GQaRfzI1rFh6EoOH9YIL0uEeAs3/HmRbiT5GHM= Received: by 10.82.185.12 with SMTP id i12mr2168126buf.1177540007136; Wed, 25 Apr 2007 15:26:47 -0700 (PDT) Received: by 10.82.163.17 with HTTP; Wed, 25 Apr 2007 15:26:47 -0700 (PDT) Message-ID: <7c737f300704251526m48df5c7dk6d32b340547e012d@mail.gmail.com> Date: Wed, 25 Apr 2007 15:26:47 -0700 From: "Alexy Khrabrov" To: "Chris Johnson" Subject: Re: script within find Cc: zsh-users@sunsite.dk In-Reply-To: <20070425215843.GB8900@cetus5.cs.utk.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7c737f300702232339keaffa58g99b1f51de74e0c8a@mail.gmail.com> <20070224100809.GA4828@sc.homeunix.net> <7c737f300704251214r602027a4u2d3533370fd317a9@mail.gmail.com> <20070425215214.GA8900@cetus5.cs.utk.edu> <20070425215843.GB8900@cetus5.cs.utk.edu> The cp -r is exactly what I want to avoid with convert, since each TIFF is a slide scan about 120 MB in size. BTW, how'd I copy just the directory structure from /tifs/ to /jpgs/ -- directories only -- in the shortest and prettiest way? :) (All the questions you always wanted to find out and where afraid to ask!:) Cheers, Alexy On 4/25/07, Chris Johnson wrote: > Chris Johnson sent me the following 1.0K: > > > Alexy Khrabrov sent me the following 2.2K: > > > > > The command to do a single conversion is > > > > > > convert -quality 100 dir1/A.tif /jpgs/dir1/A.jpg > > > > I think it'd be simpler to do something like: > > > > $ cp -r dir1 /jpgs > > $ mogrify -format jpg /jpgs/**/*.tif > > Sorry. The conversion isn't done in place. You'll end up with *.tifs > and *.jpgs in the same directory under /jpgs. You'll want to issue > > $ rm /jpgs/**/*.tif > > to get rid of the copies of the originals, or operate in the original > hierarchy and do a selective copy. > > -- > Chris Johnson > cjohnson@cs.utk.edu > http://www.cs.utk.edu/~cjohnson >