Dear Mr. Shafie,
 
If I use XMLmind through Java Webstart on a Mac, everything works smoothly,
except the imageviewport to render .eps images. The imageviewport works fine
with .eps images on windows.
 
 
*** I have GPL ghostscript 8.6.1 installed from:
http://www.openprinting.org/download/printdriver/macosx/gplgs-8.61-ub.dmg
and I verifierd, that gs executable.
 
*** I have put into my include file the follwing:
 
 <imageToolkit name="Ghostscript">
    <description>Converts EPS and PDF graphics to PNG. Important: requires
Ghostscript 8+.</description>
 
    <converter>
      <input extensions="eps pdf" magicStrings="%!PS %PDF"/>
      <output extensions="png"/>
 
      <shell
        command="gswin32c -q -dBATCH -dNOPAUSE -sDEVICE=png16m
        -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop
        %A &quot;-sOutputFile=%O&quot; &quot;%I&quot;"
        platform="Windows"/>
 
      <shell
        command="gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m
        -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 - dEPSCrop
        %A &quot;-sOutputFile=%O&quot; &quot;%I&quot;"
        platform="Mac"/>
 
      <shell
        command="gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m
        -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dEPSCrop
        %A &quot;-sOutputFile=%O&quot; &quot;%I&quot;"
        platform="Unix"/>
 
      <shell
        command="gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m
        -r96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 - dEPSCrop
        %A &quot;-sOutputFile=%O&quot; &quot;%I&quot;"
        platform="GenericUnix"/>
 
    </converter>
  </imageToolkit>
 
 
*** I have checked, that gs is properly working by typing the follwing
command in a bash terminal. The test.png was properly generated:
gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m -r96 -dTextAlphaBits=4
-dGraphicsAlphaBits=4 -dEPSCrop -sOutputFile=test.png test.eps
 
*** I have /usr/local/gs in my PATH by putting it into the .bash_profile. I
have also tested the imageviewport with a direct path to gs in the include
file, to exclude problems with the PATH variable:
/usr/local/bin/gs
Then XMLmind freezes while loding the document with a linked eps file.

*** What I also testet was the follwing command:
/bin/sh gs -q -dBATCH -dNOPAUSE -sDEVICE=png16m -r96 -dTextAlphaBits=4
-dGraphicsAlphaBits=4 -dEPSCrop -sOutputFile=test.png test.eps
I get the error message "cannot execute command"
 

Can you see what error I am making?
Kindest regards
Thomas Dumm


Reply via email to