Re: LyX terrible converting images

2003-02-20 Thread Joao B. Oliveira
I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing things badly, but it calls convert for every image on the current screen and convert seems to be doing a bad job, taking up all memory and filling the swap area as

Re: LyX terrible converting images

2003-02-20 Thread Max Bian
--- Joao B. Oliveira [EMAIL PROTECTED] wrote: Thta is why I believe that making the conversion process a serial one would speed up things much more: memory is used for one image at a time and thus fills up only in extreme cases. No swap, no disk delays, etc... I think it is better to simply

Re: LyX terrible converting images

2003-02-20 Thread Christian Ridderström
On Thu, 20 Feb 2003, Joao B. Oliveira wrote: I think that adding nice to the conversion process is a good idea that can be done in a user-by-user basis, but I believe that one of the major problems of convert is its memory consumption. Adding nice would reduce the CPU consumption, but after a

Re: LyX terrible converting images

2003-02-20 Thread Joao B. Oliveira
I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing things badly, but it calls convert for every image on the current screen and convert seems to be doing a bad job, taking up all memory and filling the swap area as

Re: LyX terrible converting images

2003-02-20 Thread Max Bian
--- Joao B. Oliveira [EMAIL PROTECTED] wrote: Thta is why I believe that making the conversion process a serial one would speed up things much more: memory is used for one image at a time and thus fills up only in extreme cases. No swap, no disk delays, etc... I think it is better to simply

Re: LyX terrible converting images

2003-02-20 Thread Christian Ridderström
On Thu, 20 Feb 2003, Joao B. Oliveira wrote: I think that adding nice to the conversion process is a good idea that can be done in a user-by-user basis, but I believe that one of the major problems of convert is its memory consumption. Adding nice would reduce the CPU consumption, but after a

Re: LyX terrible converting images

2003-02-20 Thread Joao B. Oliveira
> > > > > I have used LyX in -dbg mode and checked the conversion process. It > > > > > does not seem that LyX itself is doing things badly, but it calls > > > > > convert for every image on the current screen and convert seems to > > > > > be doing a bad job, taking up all memory and filling the

Re: LyX terrible converting images

2003-02-20 Thread Max Bian
--- "Joao B. Oliveira" <[EMAIL PROTECTED]> wrote: > Thta is why I believe that making the conversion process a serial > one would speed up things much more: memory is used for one image > at a time and thus fills up only in extreme cases. No swap, no disk > delays, etc... I think it is better

Re: LyX terrible converting images

2003-02-20 Thread Christian Ridderström
On Thu, 20 Feb 2003, Joao B. Oliveira wrote: > I think that adding nice to the conversion process is a good idea > that can be done in a user-by-user basis, but I believe that one > of the major problems of convert is its memory consumption. Adding > nice would reduce the CPU consumption, but

Re: LyX terrible converting images

2003-02-19 Thread Matej Cepl
Andre Poenitz wrote: Have you tried to run xfig's exported .eps files through 'eps2eps'? It makes pretty compact .eps... Much more complicated idea would be to produce Metapost sources instead of xfig -- interposing of Bezier curves over set of points is very simple in MP. However, of course,

Re: LyX terrible converting images

2003-02-19 Thread Matej Cepl
Andre Poenitz wrote: Have you tried to run xfig's exported .eps files through 'eps2eps'? It makes pretty compact .eps... Much more complicated idea would be to produce Metapost sources instead of xfig -- interposing of Bezier curves over set of points is very simple in MP. However, of course,

Re: LyX terrible converting images

2003-02-19 Thread Matej Cepl
Andre Poenitz wrote: > Have you tried to run xfig's exported .eps files through 'eps2eps'? > It makes pretty compact .eps... Much more complicated idea would be to produce Metapost sources instead of xfig -- interposing of Bezier curves over set of points is very simple in MP. However, of course,

LyX terrible converting images

2003-02-18 Thread Joao B. Oliveira
Hi everyone (specially the folks from the devel team), I would like to raise a few questions about the handling of figures under LyX. Maybe the answers will help me to set LyX properly at our installation, as things are getting out of hand... Some history first: I keep LyX running on a Computer

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
Joao B. Oliveira wrote: Hi everyone (specially the folks from the devel team), Hello, Joao. Some history first: I keep LyX running on a Computer Science Department, with some 20-30 students constantly using LyX on several machines. Everything was fine, until LyX 1.2.0 came along. The

Re: LyX terrible converting images

2003-02-18 Thread Jean-Marc Lasgouttes
Joao == Joao B Oliveira [EMAIL PROTECTED] writes: Joao -- If EPS files are large (I have some with more or less 1.5 Mb) Joao their conversion and displaying takes all memory and a 64Mb Joao computer simply crashes. With more images of the same size, Joao larger machines crash as well. Was this

Re: LyX terrible converting images

2003-02-18 Thread Matej Cepl
Jean-Marc Lasgouttes wrote: Joao -- If EPS files are large (I have some with more or less 1.5 Mb) Joao their conversion and displaying takes all memory and a 64Mb Joao computer simply crashes. With more images of the same size, Joao larger machines crash as well. Was this foreseen? The

Re: LyX terrible converting images

2003-02-18 Thread Joao B. Oliveira
hi everyone, Some history first: I keep LyX running on a Computer Science... The image handling code in LyX 1.2 is indeed nasty. Things should be much better in LyX 1.3. In LyX 1.3 the conversion process is triggered only for images that have been on screen for 2 seconds, so you should

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
Joao B. Oliveira wrote: Well, not really. It is rather common (at least here) to put several smaller images in a figure, to draw comparisons like In Fig 6a you see this, and in 6b we clearly see that, but 6c clearly shows Sometimes we put four or six smaller EPS imagens in a figure. (And

Re: LyX terrible converting images

2003-02-18 Thread Christian Ridderström
On Tue, 18 Feb 2003, Angus Leeming wrote: Joao B. Oliveira wrote: I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing things badly, but it calls convert for every image on the current screen and convert seems to be doing a bad job,

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
On Tuesday 18 February 2003 8:24 pm, Christian Ridderström wrote: On Tue, 18 Feb 2003, Angus Leeming wrote: Joao B. Oliveira wrote: I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing things badly, but it calls convert for every

Re: LyX terrible converting images

2003-02-18 Thread Christian Ridderström
On Tue, 18 Feb 2003, Angus Leeming wrote: On Tuesday 18 February 2003 8:24 pm, Christian Ridderström wrote: On Tue, 18 Feb 2003, Angus Leeming wrote: Joao B. Oliveira wrote: I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing

Re: LyX terrible converting images

2003-02-18 Thread Dekel Tsur
On Tue, Feb 18, 2003 at 12:36:35PM +, Angus Leeming wrote: -- First of all, how does the conversion/display process really works? Specially, how EPS files are handled? (I understand that they are always converted to ppm for displaying? Why ppm?) If you run $ lyx -dbg graphics

Re: LyX terrible converting images

2003-02-18 Thread Andre Poenitz
On Tue, Feb 18, 2003 at 04:19:20PM -0300, Joao B. Oliveira wrote: Of course, Jean-Marc's question about how to get 1.5 Mb EPS images is a valid one. The answer: we have a few programs that create images directly in XFig format. From that they can be edited and/or converted into whatever we

Re: LyX terrible converting images

2003-02-18 Thread Andre Poenitz
On Tue, Feb 18, 2003 at 07:47:22PM +0200, Dekel Tsur wrote: We should modify convertDefault.sh to work as a filter, namely 'convertDefault.sh file.eps' should write its output to stdout and not to the disk. Seconded. And possibly read from stdin, at least if no file argument was given...

LyX terrible converting images

2003-02-18 Thread Joao B. Oliveira
Hi everyone (specially the folks from the devel team), I would like to raise a few questions about the handling of figures under LyX. Maybe the answers will help me to set LyX properly at our installation, as things are getting out of hand... Some history first: I keep LyX running on a Computer

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
Joao B. Oliveira wrote: Hi everyone (specially the folks from the devel team), Hello, Joao. Some history first: I keep LyX running on a Computer Science Department, with some 20-30 students constantly using LyX on several machines. Everything was fine, until LyX 1.2.0 came along. The

Re: LyX terrible converting images

2003-02-18 Thread Jean-Marc Lasgouttes
Joao == Joao B Oliveira [EMAIL PROTECTED] writes: Joao -- If EPS files are large (I have some with more or less 1.5 Mb) Joao their conversion and displaying takes all memory and a 64Mb Joao computer simply crashes. With more images of the same size, Joao larger machines crash as well. Was this

Re: LyX terrible converting images

2003-02-18 Thread Matej Cepl
Jean-Marc Lasgouttes wrote: Joao -- If EPS files are large (I have some with more or less 1.5 Mb) Joao their conversion and displaying takes all memory and a 64Mb Joao computer simply crashes. With more images of the same size, Joao larger machines crash as well. Was this foreseen? The

Re: LyX terrible converting images

2003-02-18 Thread Joao B. Oliveira
hi everyone, Some history first: I keep LyX running on a Computer Science... The image handling code in LyX 1.2 is indeed nasty. Things should be much better in LyX 1.3. In LyX 1.3 the conversion process is triggered only for images that have been on screen for 2 seconds, so you should

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
Joao B. Oliveira wrote: Well, not really. It is rather common (at least here) to put several smaller images in a figure, to draw comparisons like In Fig 6a you see this, and in 6b we clearly see that, but 6c clearly shows Sometimes we put four or six smaller EPS imagens in a figure. (And

Re: LyX terrible converting images

2003-02-18 Thread Christian Ridderström
On Tue, 18 Feb 2003, Angus Leeming wrote: Joao B. Oliveira wrote: I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing things badly, but it calls convert for every image on the current screen and convert seems to be doing a bad job,

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
On Tuesday 18 February 2003 8:24 pm, Christian Ridderström wrote: On Tue, 18 Feb 2003, Angus Leeming wrote: Joao B. Oliveira wrote: I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing things badly, but it calls convert for every

Re: LyX terrible converting images

2003-02-18 Thread Christian Ridderström
On Tue, 18 Feb 2003, Angus Leeming wrote: On Tuesday 18 February 2003 8:24 pm, Christian Ridderström wrote: On Tue, 18 Feb 2003, Angus Leeming wrote: Joao B. Oliveira wrote: I have used LyX in -dbg mode and checked the conversion process. It does not seem that LyX itself is doing

Re: LyX terrible converting images

2003-02-18 Thread Dekel Tsur
On Tue, Feb 18, 2003 at 12:36:35PM +, Angus Leeming wrote: -- First of all, how does the conversion/display process really works? Specially, how EPS files are handled? (I understand that they are always converted to ppm for displaying? Why ppm?) If you run $ lyx -dbg graphics

Re: LyX terrible converting images

2003-02-18 Thread Andre Poenitz
On Tue, Feb 18, 2003 at 04:19:20PM -0300, Joao B. Oliveira wrote: Of course, Jean-Marc's question about how to get 1.5 Mb EPS images is a valid one. The answer: we have a few programs that create images directly in XFig format. From that they can be edited and/or converted into whatever we

Re: LyX terrible converting images

2003-02-18 Thread Andre Poenitz
On Tue, Feb 18, 2003 at 07:47:22PM +0200, Dekel Tsur wrote: We should modify convertDefault.sh to work as a filter, namely 'convertDefault.sh file.eps' should write its output to stdout and not to the disk. Seconded. And possibly read from stdin, at least if no file argument was given...

LyX terrible converting images

2003-02-18 Thread Joao B. Oliveira
Hi everyone (specially the folks from the devel team), I would like to raise a few questions about the handling of figures under LyX. Maybe the answers will help me to set LyX properly at our installation, as things are getting out of hand... Some history first: I keep LyX running on a Computer

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
Joao B. Oliveira wrote: > > Hi everyone (specially the folks from the devel team), Hello, Joao. > Some history first: I keep LyX running on a Computer Science > Department, with some 20-30 students constantly using LyX on several > machines. Everything was fine, until LyX 1.2.0 came along. The

Re: LyX terrible converting images

2003-02-18 Thread Jean-Marc Lasgouttes
> "Joao" == Joao B Oliveira <[EMAIL PROTECTED]> writes: Joao> -- If EPS files are large (I have some with more or less 1.5 Mb) Joao> their conversion and displaying takes all memory and a 64Mb Joao> computer simply crashes. With more images of the same size, Joao> larger machines crash as

Re: LyX terrible converting images

2003-02-18 Thread Matej Cepl
Jean-Marc Lasgouttes wrote: > Joao> -- If EPS files are large (I have some with more or less 1.5 Mb) > Joao> their conversion and displaying takes all memory and a 64Mb > Joao> computer simply crashes. With more images of the same size, > Joao> larger machines crash as well. Was this foreseen? >

Re: LyX terrible converting images

2003-02-18 Thread Joao B. Oliveira
hi everyone, > > Some history first: I keep LyX running on a Computer Science... > > The image handling code in LyX 1.2 is indeed nasty. Things should be much > better in LyX 1.3. In LyX 1.3 the conversion process is triggered only for > images that have been on screen for 2 seconds, so you

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
Joao B. Oliveira wrote: > Well, not really. It is rather common (at least here) to put > several smaller images in a figure, to draw comparisons like "In > Fig 6a you see this, and in 6b we clearly see that, but 6c clearly > shows...". Sometimes we put four or six smaller EPS imagens in a >

Re: LyX terrible converting images

2003-02-18 Thread Christian Ridderström
On Tue, 18 Feb 2003, Angus Leeming wrote: > Joao B. Oliveira wrote: > > I have used LyX in -dbg mode and checked the conversion process. It > > does not seem that LyX itself is doing things badly, but it calls > > convert for every image on the current screen and convert seems to > > be doing a

Re: LyX terrible converting images

2003-02-18 Thread Angus Leeming
On Tuesday 18 February 2003 8:24 pm, Christian Ridderström wrote: > On Tue, 18 Feb 2003, Angus Leeming wrote: > > Joao B. Oliveira wrote: > > > I have used LyX in -dbg mode and checked the conversion process. It > > > does not seem that LyX itself is doing things badly, but it calls > > > convert

Re: LyX terrible converting images

2003-02-18 Thread Christian Ridderström
On Tue, 18 Feb 2003, Angus Leeming wrote: > On Tuesday 18 February 2003 8:24 pm, Christian Ridderström wrote: > > On Tue, 18 Feb 2003, Angus Leeming wrote: > > > Joao B. Oliveira wrote: > > > > I have used LyX in -dbg mode and checked the conversion process. It > > > > does not seem that LyX

Re: LyX terrible converting images

2003-02-18 Thread Dekel Tsur
On Tue, Feb 18, 2003 at 12:36:35PM +, Angus Leeming wrote: > > -- First of all, how does the conversion/display process really > > works? Specially, how EPS files are handled? (I understand that > > they are always converted to ppm for displaying? Why ppm?) > > If you run > $ lyx -dbg

Re: LyX terrible converting images

2003-02-18 Thread Andre Poenitz
On Tue, Feb 18, 2003 at 04:19:20PM -0300, Joao B. Oliveira wrote: > Of course, Jean-Marc's question about how to get 1.5 Mb EPS images > is a valid one. The answer: we have a few programs that create > images directly in XFig format. From that they can be edited and/or > converted into whatever we

Re: LyX terrible converting images

2003-02-18 Thread Andre Poenitz
On Tue, Feb 18, 2003 at 07:47:22PM +0200, Dekel Tsur wrote: > We should modify convertDefault.sh to work as a filter, namely > 'convertDefault.sh file.eps' should write its output to stdout and not to > the disk. Seconded. And possibly read from stdin, at least if no file argument was given...