Re: Image conversion and Lyx qt 1.3.2 win

2003-09-14 Thread Philip A. Viton
On winnt/convert 5.5.7-Q16/gs8.11 : works fine for me. For various 
obscure  reasons I don't change my path, so I need to call convert.exe with 
a full path; but there's no problem with that, and gs is still found.

My impression is that whenever GS reports one of these messages, it almost 
always has to do with a font not being found. When you installed GS, did 
you install all its fonts, too? Otherwise try adding to the end of 
fontmap.gs some lines like

/Courier			(c:/windows/fonts/cour.ttf)

(other courier lines similar).


Philip A. Viton
City Planning, Ohio State University
190 W. 17th Ave,Columbus OH 43210
[EMAIL PROTECTED]


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-14 Thread Philip A. Viton
On winnt/convert 5.5.7-Q16/gs8.11 : works fine for me. For various 
obscure  reasons I don't change my path, so I need to call convert.exe with 
a full path; but there's no problem with that, and gs is still found.

My impression is that whenever GS reports one of these messages, it almost 
always has to do with a font not being found. When you installed GS, did 
you install all its fonts, too? Otherwise try adding to the end of 
fontmap.gs some lines like

/Courier			(c:/windows/fonts/cour.ttf)

(other courier lines similar).


Philip A. Viton
City Planning, Ohio State University
190 W. 17th Ave,Columbus OH 43210
[EMAIL PROTECTED]


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-14 Thread Philip A. Viton
On winnt/convert 5.5.7-Q16/gs8.11 : works fine for me. For various 
obscure  reasons I don't change my path, so I need to call convert.exe with 
a full path; but there's no problem with that, and gs is still found.

My impression is that whenever GS reports one of these messages, it almost 
always has to do with a font not being found. When you installed GS, did 
you install all its fonts, too? Otherwise try adding to the end of 
fontmap.gs some lines like

/Courier			(c:/windows/fonts/cour.ttf)

(other courier lines similar).


Philip A. Viton
City Planning, Ohio State University
190 W. 17th Ave,Columbus OH 43210
[EMAIL PROTECTED]


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Jorgen,

 I am using
 AFPL Ghostscript 8.11
 D:\Program Files\ImageMagick-5.5.7-Q8\
  That's strange. I moved back to ImageMagick Q8 (from Q16) and I was
  using Ghostscript 8.11 all the time. But still I cannot convert a
  sample file.
  
  convert test.eps test.bmp
  or
  convert test.eps test.ppm

  from the command line doesn't work (but the correct convert.exe is
  called, so the path is ok somehow). Still, ghostscript is complaining
  about /undefinedfilename.
  I put my sample file here (if you are interested)
  www.personal.uni-jena.de/~p9libe/test.eps

  If it's a path issue, what does your path variable (both system and
  user) look like?

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Andre Poenitz
On Fri, Sep 12, 2003 at 05:11:25PM +0200, Ben Liesfeld wrote:
   convert test.eps test.bmp
   or
   convert test.eps test.ppm
 
   from the command line doesn't work (but the correct convert.exe is
   called, so the path is ok somehow). Still, ghostscript is complaining
   about /undefinedfilename.
   I put my sample file here (if you are interested)
   www.personal.uni-jena.de/~p9libe/test.eps
 
Works fine with 

[EMAIL PROTECTED]:/tmp  gv -v  
gv 3.5.8
[EMAIL PROTECTED]:/tmp  gs -v
ESP Ghostscript 7.05.3 (2002-06-28)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
[EMAIL PROTECTED]:/tmp  convert -v  
Version: @(#)ImageMagick 5.4.7 07/18/02 Q:16 http://www.imagemagick.org
Copyright: Copyright (C) 2002 ImageMagick Studio LLC

What exactly do you type and what exactly do you get as result?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Andre,

 On Fri, Sep 12, 2003 at 05:11:25PM +0200, Ben Liesfeld wrote:
   convert test.eps test.bmp
   or
   convert test.eps test.ppm
 
   from the command line doesn't work (but the correct convert.exe is
   called, so the path is ok somehow). Still, ghostscript is complaining
   about /undefinedfilename.
   I put my sample file here (if you are interested)
   www.personal.uni-jena.de/~p9libe/test.eps
 
 Works fine with 

[EMAIL PROTECTED]:/tmp  gv -v  
 gv 3.5.8
[EMAIL PROTECTED]:/tmp  gs -v
 ESP Ghostscript 7.05.3 (2002-06-28)
 Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
[EMAIL PROTECTED]:/tmp  convert -v  
 Version: @(#)ImageMagick 5.4.7 07/18/02 Q:16 http://www.imagemagick.org
 Copyright: Copyright (C) 2002 ImageMagick Studio LLC

 What exactly do you type and what exactly do you get as result?
  I was referring to the use of ImageMagick and Ghostscript on the
  windows platform (you are apparently using *nix). There are no
  problems with LyxQt on *nix converting images.

  Somehow ImageMagick and GS don't work together on my platform
  (WinXP) but it seems that other users (like Jorgen Johansson) have a
  working configuration. I made sure that I have the same ImageMagick
  and GS versions installed but still I get error messages like the
  one below:

--snip--

C:\convert test.eps test.ppm
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
convert: DPS library is not available (test.eps).

--snip--

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Andre Poenitz
On Fri, Sep 12, 2003 at 06:09:49PM +0200, Ben Liesfeld wrote:
   I was referring to the use of ImageMagick and Ghostscript on the
   windows platform (you are apparently using *nix). 

I noticed that.

   Somehow ImageMagick and GS don't work together on my platform
   (WinXP) but it seems that other users (like Jorgen Johansson) have a
   working configuration. I made sure that I have the same ImageMagick
   and GS versions installed but still I get error messages like the
   one below:
 
 --snip--
 
 C:\convert test.eps test.ppm
 AFPL Ghostscript 8.11 (2003-08-16)
 Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
 This software comes with NO WARRANTY: see the file PUBLIC for details.
 Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)

Can you view the .eps somehow else? With gsview for instance?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Andre,

 On Fri, Sep 12, 2003 at 06:09:49PM +0200, Ben Liesfeld wrote:
   I was referring to the use of ImageMagick and Ghostscript on the
   windows platform (you are apparently using *nix). 

 I noticed that.
Sorry for stating the obvious ;-) I was just loosing track of the
whole thread myself.

   Somehow ImageMagick and GS don't work together on my platform
   (WinXP) but it seems that other users (like Jorgen Johansson) have a
   working configuration. I made sure that I have the same ImageMagick
   and GS versions installed but still I get error messages like the
   one below:
 
 --snip--
 
 C:\convert test.eps test.ppm
 AFPL Ghostscript 8.11 (2003-08-16)
 Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
 This software comes with NO WARRANTY: see the file PUBLIC for details.
 Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)

 Can you view the .eps somehow else? With gsview for instance?
Viewing the .eps works fine. E. g. I can insert a converter line in
preferences like
\converter eps ppm gswin32c.exe -dBATCH -dNOPAUSE -sDEVICE=ppmraw
-r72 -sOutputFile=$$o -c save pop -f $$i 
which results in a preview of the eps in lyx but in disrespect of the
bounding box of the eps. So around a tiny eps there's always the huge
DINA4 whitespace.

GS works therefore and I can also convert jpg or bmp to other formats
with ImageMagick, it's just that both don't work together properly.

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Jorgen,

 I am using
 AFPL Ghostscript 8.11
 D:\Program Files\ImageMagick-5.5.7-Q8\
  That's strange. I moved back to ImageMagick Q8 (from Q16) and I was
  using Ghostscript 8.11 all the time. But still I cannot convert a
  sample file.
  
  convert test.eps test.bmp
  or
  convert test.eps test.ppm

  from the command line doesn't work (but the correct convert.exe is
  called, so the path is ok somehow). Still, ghostscript is complaining
  about /undefinedfilename.
  I put my sample file here (if you are interested)
  www.personal.uni-jena.de/~p9libe/test.eps

  If it's a path issue, what does your path variable (both system and
  user) look like?

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Andre Poenitz
On Fri, Sep 12, 2003 at 05:11:25PM +0200, Ben Liesfeld wrote:
   convert test.eps test.bmp
   or
   convert test.eps test.ppm
 
   from the command line doesn't work (but the correct convert.exe is
   called, so the path is ok somehow). Still, ghostscript is complaining
   about /undefinedfilename.
   I put my sample file here (if you are interested)
   www.personal.uni-jena.de/~p9libe/test.eps
 
Works fine with 

[EMAIL PROTECTED]:/tmp  gv -v  
gv 3.5.8
[EMAIL PROTECTED]:/tmp  gs -v
ESP Ghostscript 7.05.3 (2002-06-28)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
[EMAIL PROTECTED]:/tmp  convert -v  
Version: @(#)ImageMagick 5.4.7 07/18/02 Q:16 http://www.imagemagick.org
Copyright: Copyright (C) 2002 ImageMagick Studio LLC

What exactly do you type and what exactly do you get as result?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Andre,

 On Fri, Sep 12, 2003 at 05:11:25PM +0200, Ben Liesfeld wrote:
   convert test.eps test.bmp
   or
   convert test.eps test.ppm
 
   from the command line doesn't work (but the correct convert.exe is
   called, so the path is ok somehow). Still, ghostscript is complaining
   about /undefinedfilename.
   I put my sample file here (if you are interested)
   www.personal.uni-jena.de/~p9libe/test.eps
 
 Works fine with 

[EMAIL PROTECTED]:/tmp  gv -v  
 gv 3.5.8
[EMAIL PROTECTED]:/tmp  gs -v
 ESP Ghostscript 7.05.3 (2002-06-28)
 Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
[EMAIL PROTECTED]:/tmp  convert -v  
 Version: @(#)ImageMagick 5.4.7 07/18/02 Q:16 http://www.imagemagick.org
 Copyright: Copyright (C) 2002 ImageMagick Studio LLC

 What exactly do you type and what exactly do you get as result?
  I was referring to the use of ImageMagick and Ghostscript on the
  windows platform (you are apparently using *nix). There are no
  problems with LyxQt on *nix converting images.

  Somehow ImageMagick and GS don't work together on my platform
  (WinXP) but it seems that other users (like Jorgen Johansson) have a
  working configuration. I made sure that I have the same ImageMagick
  and GS versions installed but still I get error messages like the
  one below:

--snip--

C:\convert test.eps test.ppm
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
convert: DPS library is not available (test.eps).

--snip--

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Andre Poenitz
On Fri, Sep 12, 2003 at 06:09:49PM +0200, Ben Liesfeld wrote:
   I was referring to the use of ImageMagick and Ghostscript on the
   windows platform (you are apparently using *nix). 

I noticed that.

   Somehow ImageMagick and GS don't work together on my platform
   (WinXP) but it seems that other users (like Jorgen Johansson) have a
   working configuration. I made sure that I have the same ImageMagick
   and GS versions installed but still I get error messages like the
   one below:
 
 --snip--
 
 C:\convert test.eps test.ppm
 AFPL Ghostscript 8.11 (2003-08-16)
 Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
 This software comes with NO WARRANTY: see the file PUBLIC for details.
 Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)

Can you view the .eps somehow else? With gsview for instance?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Andre,

 On Fri, Sep 12, 2003 at 06:09:49PM +0200, Ben Liesfeld wrote:
   I was referring to the use of ImageMagick and Ghostscript on the
   windows platform (you are apparently using *nix). 

 I noticed that.
Sorry for stating the obvious ;-) I was just loosing track of the
whole thread myself.

   Somehow ImageMagick and GS don't work together on my platform
   (WinXP) but it seems that other users (like Jorgen Johansson) have a
   working configuration. I made sure that I have the same ImageMagick
   and GS versions installed but still I get error messages like the
   one below:
 
 --snip--
 
 C:\convert test.eps test.ppm
 AFPL Ghostscript 8.11 (2003-08-16)
 Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
 This software comes with NO WARRANTY: see the file PUBLIC for details.
 Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)

 Can you view the .eps somehow else? With gsview for instance?
Viewing the .eps works fine. E. g. I can insert a converter line in
preferences like
\converter eps ppm gswin32c.exe -dBATCH -dNOPAUSE -sDEVICE=ppmraw
-r72 -sOutputFile=$$o -c save pop -f $$i 
which results in a preview of the eps in lyx but in disrespect of the
bounding box of the eps. So around a tiny eps there's always the huge
DINA4 whitespace.

GS works therefore and I can also convert jpg or bmp to other formats
with ImageMagick, it's just that both don't work together properly.

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Jorgen,

> I am using
> AFPL Ghostscript 8.11
> D:\Program Files\ImageMagick-5.5.7-Q8\
  That's strange. I moved back to ImageMagick Q8 (from Q16) and I was
  using Ghostscript 8.11 all the time. But still I cannot convert a
  sample file.
  
  convert test.eps test.bmp
  or
  convert test.eps test.ppm

  from the command line doesn't work (but the correct convert.exe is
  called, so the path is ok somehow). Still, ghostscript is complaining
  about /undefinedfilename.
  I put my sample file here (if you are interested)
  www.personal.uni-jena.de/~p9libe/test.eps

  If it's a path issue, what does your path variable (both system and
  user) look like?

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Andre Poenitz
On Fri, Sep 12, 2003 at 05:11:25PM +0200, Ben Liesfeld wrote:
>   convert test.eps test.bmp
>   or
>   convert test.eps test.ppm
> 
>   from the command line doesn't work (but the correct convert.exe is
>   called, so the path is ok somehow). Still, ghostscript is complaining
>   about /undefinedfilename.
>   I put my sample file here (if you are interested)
>   www.personal.uni-jena.de/~p9libe/test.eps
 
Works fine with 

[EMAIL PROTECTED]:/tmp > gv -v  
gv 3.5.8
[EMAIL PROTECTED]:/tmp > gs -v
ESP Ghostscript 7.05.3 (2002-06-28)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
[EMAIL PROTECTED]:/tmp > convert -v  
Version: @(#)ImageMagick 5.4.7 07/18/02 Q:16 http://www.imagemagick.org
Copyright: Copyright (C) 2002 ImageMagick Studio LLC

What exactly do you type and what exactly do you get as result?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Andre,

> On Fri, Sep 12, 2003 at 05:11:25PM +0200, Ben Liesfeld wrote:
>>   convert test.eps test.bmp
>>   or
>>   convert test.eps test.ppm
>> 
>>   from the command line doesn't work (but the correct convert.exe is
>>   called, so the path is ok somehow). Still, ghostscript is complaining
>>   about /undefinedfilename.
>>   I put my sample file here (if you are interested)
>>   www.personal.uni-jena.de/~p9libe/test.eps
 
> Works fine with 

[EMAIL PROTECTED]:/tmp >> gv -v  
> gv 3.5.8
[EMAIL PROTECTED]:/tmp >> gs -v
> ESP Ghostscript 7.05.3 (2002-06-28)
> Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
[EMAIL PROTECTED]:/tmp >> convert -v  
> Version: @(#)ImageMagick 5.4.7 07/18/02 Q:16 http://www.imagemagick.org
> Copyright: Copyright (C) 2002 ImageMagick Studio LLC

> What exactly do you type and what exactly do you get as result?
  I was referring to the use of ImageMagick and Ghostscript on the
  windows platform (you are apparently using *nix). There are no
  problems with LyxQt on *nix converting images.

  Somehow ImageMagick and GS don't work together on my platform
  (WinXP) but it seems that other users (like Jorgen Johansson) have a
  working configuration. I made sure that I have the same ImageMagick
  and GS versions installed but still I get error messages like the
  one below:

--snip--

C:\>convert test.eps test.ppm
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
convert: DPS library is not available (test.eps).

--snip--

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Andre Poenitz
On Fri, Sep 12, 2003 at 06:09:49PM +0200, Ben Liesfeld wrote:
>   I was referring to the use of ImageMagick and Ghostscript on the
>   windows platform (you are apparently using *nix). 

I noticed that.

>   Somehow ImageMagick and GS don't work together on my platform
>   (WinXP) but it seems that other users (like Jorgen Johansson) have a
>   working configuration. I made sure that I have the same ImageMagick
>   and GS versions installed but still I get error messages like the
>   one below:
> 
> --snip--
> 
> C:\>convert test.eps test.ppm
> AFPL Ghostscript 8.11 (2003-08-16)
> Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)

Can you view the .eps somehow else? With gsview for instance?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Image conversion and Lyx qt 1.3.2 win

2003-09-12 Thread Ben Liesfeld
Hi Andre,

> On Fri, Sep 12, 2003 at 06:09:49PM +0200, Ben Liesfeld wrote:
>>   I was referring to the use of ImageMagick and Ghostscript on the
>>   windows platform (you are apparently using *nix). 

> I noticed that.
Sorry for stating the obvious ;-) I was just loosing track of the
whole thread myself.

>>   Somehow ImageMagick and GS don't work together on my platform
>>   (WinXP) but it seems that other users (like Jorgen Johansson) have a
>>   working configuration. I made sure that I have the same ImageMagick
>>   and GS versions installed but still I get error messages like the
>>   one below:
>> 
>> --snip--
>> 
>> C:\>convert test.eps test.ppm
>> AFPL Ghostscript 8.11 (2003-08-16)
>> Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
>> This software comes with NO WARRANTY: see the file PUBLIC for details.
>> Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)

> Can you view the .eps somehow else? With gsview for instance?
Viewing the .eps works fine. E. g. I can insert a converter line in
preferences like
\converter "eps" "ppm" "gswin32c.exe -dBATCH -dNOPAUSE -sDEVICE=ppmraw
-r72 -sOutputFile=$$o -c save pop -f $$i" ""
which results in a preview of the eps in lyx but in disrespect of the
bounding box of the eps. So around a tiny eps there's always the huge
DINA4 whitespace.

GS works therefore and I can also convert jpg or bmp to other formats
with ImageMagick, it's just that both don't work together properly.

-- 
Ben Liesfeld



Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
Hello,

I am not sure if this is what you are looking for. It seems to me if Lyx 
does not find a defined converters for a certain image format it tries 
to use the convertDefault.sh. For me this causes windows xp to pop up a 
dialog to specify the program to execute the shell script. To avoid 
using the script I added the following lines to the prefrences.
(located in system at D:\Documents and 
Settings\Administrator\.lyx\preferences)

\converter eps ppm convert $$i $$o 
\converter jpg eps convert $$i $$o 
\converter png eps convert $$i $$o 
(I added them by using th lyx preferences dialog.)

The first line solves the problem of viewing eps figures inside lyx.
The others are necessary for viewing in lyx and converting from jpg and 
png figures to eps which is used by Latex to create the dvi file.

Now I have no problem with the qt version under win XP. ( Off Topic, 
except for some strange error related to reconfiguring from inside lyx 
since my system is on the D: but I put lyx on C:. Running the configure 
script from the command line solves the problem though.)

Hope the three lines above solves your problem.

jorgen

Ben Liesfeld wrote:

Hello to all,


Sorry to bother you all. I conversion works both with windows native or
cygwin Imagemagick. I had to add an explicit converter in the 
preferences, either to use the cygwin or the windows Imagemagick.
If not the qt 1.3.2 lyx was looking for the 
/usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin 
installation of lyx 1.3.1) directory. I would have guessed that the 
native version of cygwin should have looke for C:\lyx\share\lyx\scripts\
since I installed the qt version in C:\lyx\. Why didn't it?
  I still don't get it. I have both the qt version and Henschel's
  cygwin version installed. I read in a few older posts in this
  mailing list that other people had similar problems.
  I started lyx qt 1.3.2 with -dbg graphics in a command line, opened
  a file and tried to display the eps file approxseries1.eps (which is
  a perfect eps file and can be displayed by gsview):
--snip--

Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
Recognised Fileformat: ppm
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: C:/lyx/share/lyx/images/banner.ppm
with displayed filename: C:/lyx/share/lyx/images/banner.ppm
Recognised Fileformat: ppm
The file contains ppm format data.

The image loader can load the following directly:
BMP
PBM
PGM
PNG
PPM
XBM
XPM
Of these, LyX recognises the following formats:
bmp, pbm, pgm, png, ppm, xbm, xpm
No conversion needed (from == to)!
Loading image.
just Loaded.
pixmap isNull 0 xformed_pixmap_ isNull 0
Image loading succeeded.
GraphicsImage::getScaledDImensions()
params.scale   : 100
width  : 425
height : 290
pixmap isNull 0 xformed_pixmap_ isNull 0
setPixmap()
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: W:/Documents/umichpaper/comment-refere
e/approxseries1.eps
with displayed filename: W:/Documents/umichpaper/comment-referee/approxs
eries1.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file:  W:/Documents/umichpaper/comment-referee/approxseries1.ep
s
to_file_base: C:/temp/lyx_tmpdir1956a04060/approxseries11956a04060
from_format:  eps
to_format:ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh C:/lyx/share/lyx/scripts/convertDefault.sh eps:W:/Documents/umichpape
r/comment-referee/approxseries1.eps ppm:C:/temp/lyx_tmpdir1956a04060/approxserie
s11956a04060.ppm
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   

Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread Ben Liesfeld
Hi jorgen,

 I am not sure if this is what you are looking for. It seems to me if Lyx
 does not find a defined converters for a certain image format it tries
 to use the convertDefault.sh. For me this causes windows xp to pop up a
 dialog to specify the program to execute the shell script. To avoid 
 using the script I added the following lines to the prefrences.
 (located in system at D:\Documents and 
 Settings\Administrator\.lyx\preferences)
convertDefault.sh is apparently called in my setup. At least that's
what I think looking at the log. There's no pop up window asking me to
specify any program. It's executed (?) and calls convert.exe which calls
gswin32c.exe as it should be.
I cannot execute the command
convert test.eps test.ppm on the command line (same error as lyx
shows), that's why I thought it must be an ImageMagick problem.

 \converter eps ppm convert $$i $$o 
 \converter jpg eps convert $$i $$o 
 \converter png eps convert $$i $$o 

Adding these three lines doesn't solve the problem. The error message
remains the same. Again, convert.exe from ImageMagick is executed
which can't correctly cooperate with gswin32c.exe.

The lyx -dbg graphics command again shows

--snip--

Setting debug level to graphics
...
Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: W:/Documents/umichpaper/comment-refere
e/approxseries1.eps
with displayed filename: W:/Documents/umichpaper/comment-referee/approxs
eries1.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  W:/Documents/umichpaper/comment-referee/approxseries1.ep
s
to_file_base: C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile=W:/Documents/umichpaper/comment-referee/approxseries1.eps
infile_base=W:/Documents/umichpaper/comment-referee/approxseries1
outfile=C:/temp/lyx_tmpdir3596a04016/gconvert03596a04016.ppm

convert ${infile} ${outfile} ||
{
'rm' -f ${outfile}
exit 1
}

if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi

fromfile=${outfile}
tofile=C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016.ppm

'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}

--
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
c:\program files\imagemagick-5.5.7-q16\convert.exe: DPS library is not available
 (W:/Documents/umichpaper/comment-referee/approxseries1.eps).
Image conversion failed.
Unable to find converted file!

--snip--

What I am puzzled about is that - even though I added the /converter
lines to preferences in C:\Documents and
Settings\[username]\.lyx\preferences - some shell script is invoked
(build_script ... ready!...).
A shell script can't be run under WinXP. But that can't explain why
ghostscript fails (only that some files are not copied to the right
places).

 The first line solves the problem of viewing eps figures inside lyx.
 The others are necessary for viewing in lyx and converting from jpg and
 png figures to eps which is used by Latex to create the dvi file.
Never tried to use jpg and others. I just 

Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
Hello Ben,

I am not sure if I can help you with this.

I tested with and witout specifying a converter.
Below are 2 snippets.
In either case I don't get any message about ghostscript being called as 
you get..? (Does this depend on the debug setting? I start lyx with -dbg 
graphics)



When I specify (in the prefs):
\converter eps ppm convert $$i $$o 
I get the following debug message when an eps figure is converted:

--snip--

Attempting to convert image file: F:/chapters/fig/exp/rose.eps
with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  F:/chapters/fig/exp/rose.eps
to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile=F:/chapters/fig/exp/rose.eps
infile_base=F:/chapters/fig/exp/rose
outfile=C:/cygwin/tmp/lyx_tmpdir2468a02816/gconvert22468a02816.ppm
convert ${infile} ${outfile} ||
{
'rm' -f ${outfile}
exit 1
}
if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi
fromfile=${outfile}
tofile=C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm
'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}
--
Image conversion succeeded.
Loading image.
just Loaded.
pixmap isNull 0 xformed_pixmap_ isNull 0
Image loading succeeded.
GraphicsImage::getScaledDImensions()
params.scale   : 100
width  : 107
height : 133
pixmap isNull 0 xformed_pixmap_ isNull 0
setPixmap()
-- end snip--

If I don't specify a converter I get:

-- snip 2 --
Attempting to convert image file: F:/chapters/fig/exp/rose.eps
with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file:  F:/chapters/fig/exp/rose.eps
to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
from_format:  eps
to_format:ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh C:/lyx/share/lyx/scripts/convertDefault.sh 
eps:F:/chapters/fig/exp/ro
se.eps ppm:C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm
Image conversion failed.
Unable to find converted file!

-- end snip2 --

/jorgen




Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
forgot:

If execute the line which gives me the error in the lyx debug

sh C:/lyx/share/lyx/scripts/convertDefault.sh 
eps:F:/chapters/fig/exp/rose.eps 
ppm:C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm

in a command window the figure is converted correctly. Strange?

jorgen




Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
Hello,

I am not sure if this is what you are looking for. It seems to me if Lyx 
does not find a defined converters for a certain image format it tries 
to use the convertDefault.sh. For me this causes windows xp to pop up a 
dialog to specify the program to execute the shell script. To avoid 
using the script I added the following lines to the prefrences.
(located in system at D:\Documents and 
Settings\Administrator\.lyx\preferences)

\converter eps ppm convert $$i $$o 
\converter jpg eps convert $$i $$o 
\converter png eps convert $$i $$o 
(I added them by using th lyx preferences dialog.)

The first line solves the problem of viewing eps figures inside lyx.
The others are necessary for viewing in lyx and converting from jpg and 
png figures to eps which is used by Latex to create the dvi file.

Now I have no problem with the qt version under win XP. ( Off Topic, 
except for some strange error related to reconfiguring from inside lyx 
since my system is on the D: but I put lyx on C:. Running the configure 
script from the command line solves the problem though.)

Hope the three lines above solves your problem.

jorgen

Ben Liesfeld wrote:

Hello to all,


Sorry to bother you all. I conversion works both with windows native or
cygwin Imagemagick. I had to add an explicit converter in the 
preferences, either to use the cygwin or the windows Imagemagick.
If not the qt 1.3.2 lyx was looking for the 
/usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin 
installation of lyx 1.3.1) directory. I would have guessed that the 
native version of cygwin should have looke for C:\lyx\share\lyx\scripts\
since I installed the qt version in C:\lyx\. Why didn't it?
  I still don't get it. I have both the qt version and Henschel's
  cygwin version installed. I read in a few older posts in this
  mailing list that other people had similar problems.
  I started lyx qt 1.3.2 with -dbg graphics in a command line, opened
  a file and tried to display the eps file approxseries1.eps (which is
  a perfect eps file and can be displayed by gsview):
--snip--

Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
Recognised Fileformat: ppm
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: C:/lyx/share/lyx/images/banner.ppm
with displayed filename: C:/lyx/share/lyx/images/banner.ppm
Recognised Fileformat: ppm
The file contains ppm format data.

The image loader can load the following directly:
BMP
PBM
PGM
PNG
PPM
XBM
XPM
Of these, LyX recognises the following formats:
bmp, pbm, pgm, png, ppm, xbm, xpm
No conversion needed (from == to)!
Loading image.
just Loaded.
pixmap isNull 0 xformed_pixmap_ isNull 0
Image loading succeeded.
GraphicsImage::getScaledDImensions()
params.scale   : 100
width  : 425
height : 290
pixmap isNull 0 xformed_pixmap_ isNull 0
setPixmap()
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: W:/Documents/umichpaper/comment-refere
e/approxseries1.eps
with displayed filename: W:/Documents/umichpaper/comment-referee/approxs
eries1.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file:  W:/Documents/umichpaper/comment-referee/approxseries1.ep
s
to_file_base: C:/temp/lyx_tmpdir1956a04060/approxseries11956a04060
from_format:  eps
to_format:ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh C:/lyx/share/lyx/scripts/convertDefault.sh eps:W:/Documents/umichpape
r/comment-referee/approxseries1.eps ppm:C:/temp/lyx_tmpdir1956a04060/approxserie
s11956a04060.ppm
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   

Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread Ben Liesfeld
Hi jorgen,

 I am not sure if this is what you are looking for. It seems to me if Lyx
 does not find a defined converters for a certain image format it tries
 to use the convertDefault.sh. For me this causes windows xp to pop up a
 dialog to specify the program to execute the shell script. To avoid 
 using the script I added the following lines to the prefrences.
 (located in system at D:\Documents and 
 Settings\Administrator\.lyx\preferences)
convertDefault.sh is apparently called in my setup. At least that's
what I think looking at the log. There's no pop up window asking me to
specify any program. It's executed (?) and calls convert.exe which calls
gswin32c.exe as it should be.
I cannot execute the command
convert test.eps test.ppm on the command line (same error as lyx
shows), that's why I thought it must be an ImageMagick problem.

 \converter eps ppm convert $$i $$o 
 \converter jpg eps convert $$i $$o 
 \converter png eps convert $$i $$o 

Adding these three lines doesn't solve the problem. The error message
remains the same. Again, convert.exe from ImageMagick is executed
which can't correctly cooperate with gswin32c.exe.

The lyx -dbg graphics command again shows

--snip--

Setting debug level to graphics
...
Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: W:/Documents/umichpaper/comment-refere
e/approxseries1.eps
with displayed filename: W:/Documents/umichpaper/comment-referee/approxs
eries1.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  W:/Documents/umichpaper/comment-referee/approxseries1.ep
s
to_file_base: C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile=W:/Documents/umichpaper/comment-referee/approxseries1.eps
infile_base=W:/Documents/umichpaper/comment-referee/approxseries1
outfile=C:/temp/lyx_tmpdir3596a04016/gconvert03596a04016.ppm

convert ${infile} ${outfile} ||
{
'rm' -f ${outfile}
exit 1
}

if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi

fromfile=${outfile}
tofile=C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016.ppm

'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}

--
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
c:\program files\imagemagick-5.5.7-q16\convert.exe: DPS library is not available
 (W:/Documents/umichpaper/comment-referee/approxseries1.eps).
Image conversion failed.
Unable to find converted file!

--snip--

What I am puzzled about is that - even though I added the /converter
lines to preferences in C:\Documents and
Settings\[username]\.lyx\preferences - some shell script is invoked
(build_script ... ready!...).
A shell script can't be run under WinXP. But that can't explain why
ghostscript fails (only that some files are not copied to the right
places).

 The first line solves the problem of viewing eps figures inside lyx.
 The others are necessary for viewing in lyx and converting from jpg and
 png figures to eps which is used by Latex to create the dvi file.
Never tried to use jpg and others. I just 

Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
Hello Ben,

I am not sure if I can help you with this.

I tested with and witout specifying a converter.
Below are 2 snippets.
In either case I don't get any message about ghostscript being called as 
you get..? (Does this depend on the debug setting? I start lyx with -dbg 
graphics)



When I specify (in the prefs):
\converter eps ppm convert $$i $$o 
I get the following debug message when an eps figure is converted:

--snip--

Attempting to convert image file: F:/chapters/fig/exp/rose.eps
with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  F:/chapters/fig/exp/rose.eps
to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile=F:/chapters/fig/exp/rose.eps
infile_base=F:/chapters/fig/exp/rose
outfile=C:/cygwin/tmp/lyx_tmpdir2468a02816/gconvert22468a02816.ppm
convert ${infile} ${outfile} ||
{
'rm' -f ${outfile}
exit 1
}
if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi
fromfile=${outfile}
tofile=C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm
'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}
--
Image conversion succeeded.
Loading image.
just Loaded.
pixmap isNull 0 xformed_pixmap_ isNull 0
Image loading succeeded.
GraphicsImage::getScaledDImensions()
params.scale   : 100
width  : 107
height : 133
pixmap isNull 0 xformed_pixmap_ isNull 0
setPixmap()
-- end snip--

If I don't specify a converter I get:

-- snip 2 --
Attempting to convert image file: F:/chapters/fig/exp/rose.eps
with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file:  F:/chapters/fig/exp/rose.eps
to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
from_format:  eps
to_format:ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh C:/lyx/share/lyx/scripts/convertDefault.sh 
eps:F:/chapters/fig/exp/ro
se.eps ppm:C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm
Image conversion failed.
Unable to find converted file!

-- end snip2 --

/jorgen




Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
forgot:

If execute the line which gives me the error in the lyx debug

sh C:/lyx/share/lyx/scripts/convertDefault.sh 
eps:F:/chapters/fig/exp/rose.eps 
ppm:C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm

in a command window the figure is converted correctly. Strange?

jorgen




Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
Hello,

I am not sure if this is what you are looking for. It seems to me if Lyx 
does not find a defined converters for a certain image format it tries 
to use the convertDefault.sh. For me this causes windows xp to pop up a 
dialog to specify the program to execute the shell script. To avoid 
using the script I added the following lines to the prefrences.
(located in system at D:\Documents and 
Settings\Administrator\.lyx\preferences)

\converter "eps" "ppm" "convert $$i $$o" ""
\converter "jpg" "eps" "convert $$i $$o" ""
\converter "png" "eps" "convert $$i $$o" ""
(I added them by using th lyx preferences dialog.)

The first line solves the problem of viewing eps figures inside lyx.
The others are necessary for viewing in lyx and converting from jpg and 
png figures to eps which is used by Latex to create the dvi file.

Now I have no problem with the qt version under win XP. ( Off Topic, 
except for some strange error related to reconfiguring from inside lyx 
since my system is on the D: but I put lyx on C:. Running the configure 
script from the command line solves the problem though.)

Hope the three lines above solves your problem.

jorgen

Ben Liesfeld wrote:

Hello to all,


Sorry to bother you all. I conversion works both with windows native or
cygwin Imagemagick. I had to add an explicit converter in the 
preferences, either to use the cygwin or the windows Imagemagick.
If not the qt 1.3.2 lyx was looking for the 
/usr/local/share/lyx/scripts/convertDefault.sh (which is cygwin 
installation of lyx 1.3.1) directory. I would have guessed that the 
native version of cygwin should have looke for C:\lyx\share\lyx\scripts\
since I installed the qt version in C:\lyx\. Why didn't it?
  I still don't get it. I have both the qt version and Henschel's
  cygwin version installed. I read in a few older posts in this
  mailing list that other people had similar problems.
  I started lyx qt 1.3.2 with -dbg graphics in a command line, opened
  a file and tried to display the eps file approxseries1.eps (which is
  a perfect eps file and can be displayed by gsview):
--snip--

Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
Recognised Fileformat: ppm
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: C:/lyx/share/lyx/images/banner.ppm
with displayed filename: C:/lyx/share/lyx/images/banner.ppm
Recognised Fileformat: ppm
The file contains ppm format data.

The image loader can load the following directly:
BMP
PBM
PGM
PNG
PPM
XBM
XPM
Of these, LyX recognises the following formats:
bmp, pbm, pgm, png, ppm, xbm, xpm
No conversion needed (from == to)!
Loading image.
just Loaded.
pixmap isNull 0 xformed_pixmap_ isNull 0
Image loading succeeded.
GraphicsImage::getScaledDImensions()
params.scale   : 100
width  : 425
height : 290
pixmap isNull 0 xformed_pixmap_ isNull 0
setPixmap()
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Token: 'filename'
Token: 'width'
Token: '\end_inset'
Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: W:/Documents/umichpaper/comment-refere
e/approxseries1.eps
with displayed filename: W:/Documents/umichpaper/comment-referee/approxs
eries1.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file:  W:/Documents/umichpaper/comment-referee/approxseries1.ep
s
to_file_base: C:/temp/lyx_tmpdir1956a04060/approxseries11956a04060
from_format:  eps
to_format:ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh C:/lyx/share/lyx/scripts/convertDefault.sh eps:W:/Documents/umichpape
r/comment-referee/approxseries1.eps ppm:C:/temp/lyx_tmpdir1956a04060/approxserie
s11956a04060.ppm
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   

Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread Ben Liesfeld
Hi jorgen,

> I am not sure if this is what you are looking for. It seems to me if Lyx
> does not find a defined converters for a certain image format it tries
> to use the convertDefault.sh. For me this causes windows xp to pop up a
> dialog to specify the program to execute the shell script. To avoid 
> using the script I added the following lines to the prefrences.
> (located in system at D:\Documents and 
> Settings\Administrator\.lyx\preferences)
convertDefault.sh is apparently called in my setup. At least that's
what I think looking at the log. There's no pop up window asking me to
specify any program. It's executed (?) and calls convert.exe which calls
gswin32c.exe as it should be.
I cannot execute the command
"convert test.eps test.ppm" on the command line (same error as lyx
shows), that's why I thought it must be an ImageMagick problem.

> \converter "eps" "ppm" "convert $$i $$o" ""
> \converter "jpg" "eps" "convert $$i $$o" ""
> \converter "png" "eps" "convert $$i $$o" ""

Adding these three lines doesn't solve the problem. The error message
remains the same. Again, convert.exe from ImageMagick is executed
which can't correctly cooperate with gswin32c.exe.

The "lyx -dbg graphics" command again shows

--snip--

Setting debug level to graphics
...
Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: W:/Documents/umichpaper/comment-refere
e/approxseries1.eps
with displayed filename: W:/Documents/umichpaper/comment-referee/approxs
eries1.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  W:/Documents/umichpaper/comment-referee/approxseries1.ep
s
to_file_base: C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile="W:/Documents/umichpaper/comment-referee/approxseries1.eps"
infile_base="W:/Documents/umichpaper/comment-referee/approxseries1"
outfile="C:/temp/lyx_tmpdir3596a04016/gconvert03596a04016.ppm"

convert ${infile} ${outfile} ||
{
'rm' -f ${outfile}
exit 1
}

if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi

fromfile=${outfile}
tofile="C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016.ppm"

'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}

--
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push
Dictionary stack:
   --dict:1104/1123(ro)(G)--   --dict:0/20(G)--   --dict:69/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
AFPL Ghostscript 8.11: Unrecoverable error, exit code 1
c:\program files\imagemagick-5.5.7-q16\convert.exe: DPS library is not available
 (W:/Documents/umichpaper/comment-referee/approxseries1.eps).
Image conversion failed.
Unable to find converted file!

--snip--

What I am puzzled about is that - even though I added the /converter
lines to preferences in "C:\Documents and
Settings\[username]\.lyx\preferences" - some shell script is invoked
("build_script ... ready!...").
A shell script can't be run under WinXP. But that can't explain why
ghostscript fails (only that some files are not copied to the right
places).

> The first line solves the problem of viewing eps figures inside lyx.
> The others are necessary for viewing in lyx and converting from jpg and
> png figures to eps which is used by Latex to create the 

Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
Hello Ben,

I am not sure if I can help you with this.

I tested with and witout specifying a converter.
Below are 2 snippets.
In either case I don't get any message about ghostscript being called as 
you get..? (Does this depend on the debug setting? I start lyx with -dbg 
graphics)



When I specify (in the prefs):
\converter "eps" "ppm" "convert $$i $$o" ""
I get the following debug message when an eps figure is converted:

--snip--

Attempting to convert image file: F:/chapters/fig/exp/rose.eps
with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  F:/chapters/fig/exp/rose.eps
to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile="F:/chapters/fig/exp/rose.eps"
infile_base="F:/chapters/fig/exp/rose"
outfile="C:/cygwin/tmp/lyx_tmpdir2468a02816/gconvert22468a02816.ppm"
convert ${infile} ${outfile} ||
{
'rm' -f ${outfile}
exit 1
}
if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi
fromfile=${outfile}
tofile="C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm"
'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}
--
Image conversion succeeded.
Loading image.
just Loaded.
pixmap isNull 0 xformed_pixmap_ isNull 0
Image loading succeeded.
GraphicsImage::getScaledDImensions()
params.scale   : 100
width  : 107
height : 133
pixmap isNull 0 xformed_pixmap_ isNull 0
setPixmap()
-- end snip--

If I don't specify a converter I get:

-- snip 2 --
Attempting to convert image file: F:/chapters/fig/exp/rose.eps
with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps
The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file:  F:/chapters/fig/exp/rose.eps
to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
from_format:  eps
to_format:ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh C:/lyx/share/lyx/scripts/convertDefault.sh 
eps:F:/chapters/fig/exp/ro
se.eps ppm:C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm
Image conversion failed.
Unable to find converted file!

-- end snip2 --

/jorgen




Re: Image conversion and Lyx qt 1.3.2 win

2003-09-11 Thread jorgen johansson
forgot:

If execute the line which gives me the error in the lyx debug

sh C:/lyx/share/lyx/scripts/convertDefault.sh 
eps:F:/chapters/fig/exp/rose.eps 
ppm:C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm

in a command window the figure is converted correctly. Strange?

jorgen