Re: An inset graphics question

2002-02-12 Thread Herbert Voss
Angus Leeming wrote: > Let's not say wrong, but that libXPM doesn't like it. > > I seem to remember that it had problems when there was more than one char per > pixel. I installed a converter from tgif->gif and than all works well. Herbert -- http://www.lyx.org/help/

Re: An inset graphics question

2002-02-12 Thread Angus Leeming
On Tuesday 12 February 2002 8:18 pm, Herbert Voss wrote: > Angus we had this error some days ago. Is this also a wrong xpm image? > > from: tgif -> xpm > Tgif Version 4.1 (patchlevel 40) > > Copyright (C) 1990-2000, William Chia-Wei Cheng > > Reading 'testconfiguration-inres.obj'... > XPM file

Re: An inset graphics question

2002-02-12 Thread Dekel Tsur
On Tue, Feb 12, 2002 at 07:38:27PM +, Angus Leeming wrote: > + string const possible_output_file = RemoveExtension(params.filename) + to; > + if (isFileReadable(possible_output_file)) { > + // the output file is already present. > + return possible_output_file;

Re: An inset graphics question

2002-02-12 Thread Herbert Voss
Angus we had this error some days ago. Is this also a wrong xpm image? from: tgif -> xpm Tgif Version 4.1 (patchlevel 40) Copyright (C) 1990-2000, William Chia-Wei Cheng Reading 'testconfiguration-inres.obj'... XPM file [321x301] printed into 'testconfiguration-inres.xpm'. imageConverted, conve

Re: An inset graphics question

2002-02-12 Thread Angus Leeming
On Tuesday 12 February 2002 7:55 pm, Herbert Voss wrote: > Angus Leeming wrote: > > > A dumb quetion perhaps: why are we converting thes graphics files without > > first checking that the desired output file doesn't already exist. This is > > the suggested code in InsetGraphics::prepareFile, b

Re: An inset graphics question

2002-02-12 Thread Herbert Voss
Angus Leeming wrote: > A dumb quetion perhaps: why are we converting thes graphics files without > first checking that the desired output file doesn't already exist. This is > the suggested code in InsetGraphics::prepareFile, but it's equally true in > GraphicsCacheItem::convert. > > Am I mis

An inset graphics question

2002-02-12 Thread Angus Leeming
A dumb quetion perhaps: why are we converting thes graphics files without first checking that the desired output file doesn't already exist. This is the suggested code in InsetGraphics::prepareFile, but it's equally true in GraphicsCacheItem::convert. Am I missing something obvious? Angus s

2nd graphics question

2002-02-08 Thread Angus Leeming
I can't make sense of this. Why do we check the display status before converting to EPS or other output format? I'm going to scrap it if nobody explains else. A string const InsetGraphics::prepareFile(Buffer const *buf) const { // first check if file is viewed in LyX. First local

Re: Graphics question

2002-02-08 Thread Angus Leeming
On Friday 08 February 2002 1:41 pm, Herbert Voss wrote: > Angus Leeming wrote: > > > My question: if the output file needs to be converted (to eps, png etc), then > > this conversion is always going to result in bitmap (rather than vector) > > data. So, does it matter if we start from the orig

Re: Graphics question

2002-02-08 Thread Herbert Voss
Angus Leeming wrote: > My question: if the output file needs to be converted (to eps, png etc), then > this conversion is always going to result in bitmap (rather than vector) > data. So, does it matter if we start from the original file, or from the > pixmap stored in memory (if it has been c

Graphics question

2002-02-08 Thread Angus Leeming
getting there... I have a graphics cache that ALWAYS stores the image data, but only starts loading the image if it receives an explicit request to do so from InsetGraphics::draw(). Moreover, if the InsetGraphicsParams::display variable is set to NONE, then it's intelligent enough not to start

Re: Graphics question

2001-10-29 Thread Angus Leeming
On Monday 29 October 2001 5:29 pm, Dekel Tsur wrote: > On Mon, Oct 29, 2001 at 05:11:40PM +, John Levon wrote: > > On Mon, Oct 29, 2001 at 12:18:13PM +0100, Angus Leeming wrote: > > > > > I'm using "convert" to create my original pixmap and convert has a -geometry > > > option that enables

Re: Graphics question

2001-10-29 Thread Angus Leeming
On Monday 29 October 2001 5:11 pm, John Levon wrote: > On Mon, Oct 29, 2001 at 12:18:13PM +0100, Angus Leeming wrote: > > > I'm using "convert" to create my original pixmap and convert has a -geometry > > option that enables me to specify the dimensions of the final pixmap, but the > > colour

Re: Graphics question

2001-10-29 Thread Dekel Tsur
On Mon, Oct 29, 2001 at 05:11:40PM +, John Levon wrote: > On Mon, Oct 29, 2001 at 12:18:13PM +0100, Angus Leeming wrote: > > > I'm using "convert" to create my original pixmap and convert has a -geometry > > option that enables me to specify the dimensions of the final pixmap, but the > > c

Re: Graphics question

2001-10-29 Thread John Levon
On Mon, Oct 29, 2001 at 12:18:13PM +0100, Angus Leeming wrote: > I'm using "convert" to create my original pixmap and convert has a -geometry > option that enables me to specify the dimensions of the final pixmap, but the > colours of this scaled pixmap are junk: > > ". c #0b680b680b68",

Graphics question

2001-10-29 Thread Angus Leeming
Maybe someone can help. I have been playing with my attempt to load graphics in the background so that we can continue to use LyX whilst the conversion is taking place. I've a little test program that works fine althoufh the conversion is currently hardcoded. The pixmap is finally displayed as

Re: graphics question

2001-10-22 Thread Angus Leeming
On Sunday 21 October 2001 06:43, Garst R. Reese wrote: > How do I get the LyX view to update? > I have a .eps file generated from a .fig with export. > Changing the .eps file has no effect in LyX, even if I change page % > update ps shows the changes, but even closing and reopening the file > does

Re: Graphics Question

2001-09-14 Thread Angus Leeming
On Friday 14 September 2001 17:36, Juergen Spitzmueller wrote: > Am Freitag, 14. September 2001 17:13 schrieb Baruch Even: > > I believe that the only place missing for jpg is the filename regex, > > if my memory serves me right, there should be no problem beyond that. > > Nice. I didn't encounte

Re: Graphics Question

2001-09-14 Thread Juergen Spitzmueller
Am Freitag, 14. September 2001 17:13 schrieb Baruch Even: > I believe that the only place missing for jpg is the filename regex, > if my memory serves me right, there should be no problem beyond that. Nice. I didn't encounter any problems either. Could then someone apply/ change this, please? T

Re: Graphics Question

2001-09-14 Thread Baruch Even
I believe that the only place missing for jpg is the filename regex, if my memory serves me right, there should be no problem beyond that. On Fri, 14 Sep 2001, Juergen Spitzmueller wrote: > Michael Schmidt wrote: > - The new graphics inset supports file extension ".jpeg" but not ".jpg". > I thi

Graphics Question

2001-09-14 Thread Juergen Spitzmueller
Michael Schmidt wrote: - The new graphics inset supports file extension ".jpeg" but not ".jpg". I think the latter is also commonly used. Can it be supported? Is this really all that needs to be done (works for me) or are there real problems with ".jpg"-files? Excuse me if the answer is obvious