[Tutkielma-TeX] Figures converter to eps

Miika Nurminen miika.nurminen at jyu.fi
Mon Oct 3 11:53:27 EEST 2011


Ville Tirronen wrote:
>>> convert my graphics to EPS format from PNG or JPEG. Can someone
>>> suggest me
>>
>> An additional comment, to supplement Matthieu's excellent answer.
>>
>> If you can avoid it, don't convert from PNG or JPEG. Convert from a vector
>> graphics format, if available.
>
> Additional comment to additional comment. Why to bother with eps to
> begin with? Just use pdflatex and it'll accept png images just fine. And
> you'll most likely will have less problems when submitting your paper
> due to font embeddings and such.

If you need to include fonts to your publications (e.g. for printing 
houses), using latex and dvips (or possibly even pdftops) may still be 
needed, and this requires additional processing. I agree that pdflatex 
or xetex are the best alternatives for _online_ pdf publishing and you 
should always use vector gfx if possible.

to do the initial conversion, use imagemagick convert (installed in 
jalava, etc). e.g. with 300 dpi originals:
convert ín.png -density 300 out.eps

however, to make sure the resolution is preserved in the final pdf 
(assuming you are creating one), you should note the settings in 
ghostscript as well since this does affect the information contained in 
images regardless of the resolution used in the original conversion.

for example, when using PREPRESS setting in ghostscript ensures that all 
the images are in uniform resolution (possibly lower than the 
originals), suitable for printing press:
ps2pdf -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.4 
-dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true in.ps

you can replace the PREPRESS setting with DEFAULT to keep the 
(bitmap-converted) images in as high resolution as possible, but this 
does not include fonts.

http://pages.cs.wisc.edu/~ghost/doc/AFPL/6.50/Ps2pdf.htm

-- 
Miika




More information about the Tutkielma-TeX mailing list