From owner-freebsd-questions Fri Oct 26 9:23:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from webs1.accretive-networks.net (webs1.accretive-networks.net [207.246.154.13]) by hub.freebsd.org (Postfix) with ESMTP id 8BF0D37B411 for ; Fri, 26 Oct 2001 09:23:37 -0700 (PDT) Received: from localhost (davidk@localhost) by webs1.accretive-networks.net (8.11.1/8.11.3) with ESMTP id f9QGNUH27558; Fri, 26 Oct 2001 09:23:30 -0700 (PDT) Date: Fri, 26 Oct 2001 09:23:30 -0700 (PDT) From: David Kirchner X-X-Sender: To: Cc: Subject: Re: how to resize many images from a console-prompt? In-Reply-To: <20011026181810.A23909@xs4all.nl> Message-ID: <20011026092203.F25870-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 26 Oct 2001 rene@xs4all.nl wrote: > Hi. I have large directories full of image files that I need to do processing > on. Can anyone tell me which packages are out there that might assist me? > > I'm particularly looking for functionality to get fileinformation (width, > height, no of colors) in an .gif, .png or .jpg image. > With that information, I'd like to be able to resize all 3 fileformats to > something that I specify. > For instance, I'd like to be able to resize along only 1 edge, and have the > program calculate the proportions for me, and any whitespace that is left > over should have a color defined by me or be transparant.. > > I know I'm asking for a lot; is it out there? ;) Install ImageMagick and check out 'convert'. Specifically, something like: convert -geometry 500x500 input.jpg output.jpg will convert the image so one side is 500. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message