From owner-freebsd-questions@FreeBSD.ORG Fri Nov 7 19:19:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B98FE1065672 for ; Fri, 7 Nov 2008 19:19:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7D0968FC1D for ; Fri, 7 Nov 2008 19:19:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-88-233.dynamic.qsc.de [92.196.88.233]) by mx01.qsc.de (Postfix) with ESMTP id 776D45134F; Fri, 7 Nov 2008 20:19:55 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id mA7JJs8J003259; Fri, 7 Nov 2008 20:19:54 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 7 Nov 2008 20:19:53 +0100 From: Polytropon To: Laszlo Nagy Message-Id: <20081107201954.5d7e4993.freebsd@edvax.de> In-Reply-To: <49143663.9070804@shopzeus.com> References: <49143663.9070804@shopzeus.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: eps to jpg conversion - which program? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 19:19:57 -0000 On Fri, 07 Nov 2008 13:36:51 +0100, Laszlo Nagy wrote: > > Hi, > > I need to convert eps files into jpeg files in batch mode. Gimp works > perfectly, except that I cannot use an X display. I tried eps2png with > no success: You can use the convert command from ImageMagick: convert A batch solution is simple: #!/bin/sh for f in *eps; do convert ${f} `basename ${f} .eps`.jpg done You can add [ ! -f `basename ${f} .eps`.jpg ] && infront of the convert command to avoid repeated conversions. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...