Re: dvipdfm fails to convert .eps images

"George N. White III" <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <CAKTOP45LVaF3j7TDOkh9Bw7gQx6RrBDfwJ36gsRvkazqYb_jGA@mail.gmail.com>
On Sat, Aug 6, 2011 at 12:03 PM, Jeff E. Lewis <[email protected]> wrote:
> The default dvipdfmx.cfg contains:
>
> %% Use MiKTeX Ghostscript:
> D  "mgs.exe -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite
> -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false
> -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false
> -dColorImageFilter=/FlateEncode -dUseFlateCompression=true
> -sOutputFile=\"%o\" \"%i\" -c quit"

ghostscript may require -dNOSAFER:

<http://tex.stackexchange.com/questions/13359/xelatex-compilation-of-pstricks-fails>

> This works "manually" specifying %o and %i -- but within dvipdfm results in
> an error message
> ** WARNING ** Filtering file via command -->mgs.exe -q -dNOPAUSE -dBATCH
> -sPAPER
> SIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dAutoFilterGrayImages=false
> -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false
> -dColorImageFilter=
> /FlateEncode -dUseFlateCompression=true
> -sOutputFile="C:/Users/jlewis/AppData/Lo
> cal/Temp/mik63C2.tmp" "C:/docs/jlewis/math165/maple/165avgprofit1.eps" -c
> quit<-
> - failed.
> ** WARNING ** Image format conversion for
> "C:/docs/jlewis/math165/maple/165avgpr
> ofit1.eps" failed...
> ** WARNING ** pdf: image inclusion failed for "./maple/165avgprofit1.eps".
> ** WARNING ** Failed to read image file: ./maple/165avgprofit1.eps
> ** WARNING ** Interpreting special command PSfile (ps:) failed.
> ** WARNING ** >> at page="1" position="(198, 299.56)" (in PDF)
> ** WARNING ** >> xxx "PSfile=./maple/165avgprofit1.eps llx=20 lly=118
> urx=575 ur
> y=673"
>
> A HACKED SOLUTION:
>
> The only thing which I could get to work within dvipdfm was
>
> %% ImageMagick:
> %% Easiest way to support various file formats.
> %D  "convert %i epdf:%o"
> D  "c:/ImageMagick-6.7.1-2/convert.exe %i epdf:%o"
>
> Also works:
> D  "c:/ImageMagick-6.7.1-2/convert.exe \"%i\" epdf:\"%o\""
>
> Full path is necessary to avoid conflict with Windows "convert"
>
> Also works:
> D  "\"c:\\ImageMagick-6.7.1-2\\convert.exe\" \"%i\" epdf:\"%o\""
>
>
> I also tried ps2pdf14 with no success:
>
> D "ps2pdf14  %i %o "
> and
> D "ps2pdf14 \"%i\" \"%o\" "
>
>
>
> I think this a "bug" and, if so, the smart people who maintain MiKTeX will
> find a way to use divpdfm within MiKTeX without installing ImageMagick.
>
>
> Prof. Jeff E. Lewis
> Professor of Mathematics, Emeritus
> Honors College Associate Dean for Academic Affairs, Emeritus
> Tel: Office: +1-312-413-9586, Home (preferred): +1-312-421-4394, TrustFax:
> +1-866-571-9921
> e-mail: [email protected]
> http://www.math.uic.edu/~lewis/
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> MiKTeX-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/miktex-users
>



-- 
George N. White III <[email protected]>
Head of St. Margarets Bay, Nova Scotia

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.