gs -q -sDEVICE=jpeggray -dNOPAUSE -sOutputFile=eps.jpeg $1