eps to jpg conversion - which program?

Polytropon freebsd at edvax.de
Fri Nov 7 11:19:57 PST 2008


On Fri, 07 Nov 2008 13:36:51 +0100, Laszlo Nagy <gandalf at 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, ...


More information about the freebsd-questions mailing list