Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: cropping images Date: Thu, 18 Aug 2011 21:05:07 -0500 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 19 Aug 2011 02:05:19 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="WpcHJSul77m+zlbR9GVqkA"; logging-data="31612"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PS6KV0V7639ejDrRat3S6xeF20K0v0lo=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: Cancel-Lock: sha1:+W+2oi0MCzfGIjcdd6f5f7SYWl0= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7237 On 8/18/2011 6:18 PM, Roedy Green wrote: > I have 1200 square PNG images of national flags in various sizes. I > would like to crop them to rectangles. I thought of writing a > one-shot java utility for the purpose, then I wondered if I would be > reinventing the wheel. Suggestions? ImageMagick can do a lot of stuff with image manipulation, especially combined with some simple shell scripts. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth