Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 2008 20:19:53 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Laszlo Nagy <gandalf@shopzeus.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: eps to jpg conversion - which program?
Message-ID:  <20081107201954.5d7e4993.freebsd@edvax.de>
In-Reply-To: <49143663.9070804@shopzeus.com>
References:  <49143663.9070804@shopzeus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 07 Nov 2008 13:36:51 +0100, Laszlo Nagy <gandalf@shopzeus.com> 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 <eps-file> <jpg-file>

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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081107201954.5d7e4993.freebsd>