Re: LyX and gs 6.5

2001-04-05 Thread Matej Cepl

On my Windows box (yes, I am East of the Paradise, for a while :-) and using Acrobat 
Reader 4.0, there are no problems with text (File/Info/Fonts shows that, they are 
Type1 Helevetica and Times-Roman), but the pictures are exceedinlgy ugly (smeared and 
reddish). Same with GhostScript (GSView 3.4 and GhostScript 6.01).

Did you try to recreate the page with pdflatex and hand made png pictures?

Matej
- Original Message - 
From: "Stephan E. Schlierf" <[EMAIL PROTECTED]>
To: "Tuukka Toivonen" <[EMAIL PROTECTED]>
Cc: "lyxin käyttäjäkerho" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 8:55 AM


> Am Donnerstag,  5. April 2001 14:35 schrieb Tuukka Toivonen:
> > On Thu, 5 Apr 2001, Stephan E. Schlierf wrote:
> > > > can you give a short lyx-example file with one picture?
> > >
> > > Here it comes ...
> >
> > I don't have any problem here. the eps figures are fine, the postscript is
> > fine and the pdf is fine (didn't print it). Only problem I seem to have is
> > that if I zoom the pdf file in Acroread up to 800% or so, the blue color
> > in figures occasionally changes to red, but this must be a bug in
> > acroread, not related to your problem.
> >
> > But then, I'm using gs 5.50.
> >
> > You might want to try converting your original images to PNG, inserting
> > those in your document and then using pdflatex.
> >
> > You may also send me a pdf file that shows the problem. I can try if it is
> > a problem in pdf file or viewers.
> 
> Hm, more and more I come to the point that this is a problem with gs 6.50. 
> But I would be interested if you have the same problems displaying the 
> attached file by acroread or other pdf-viewers.
> 
> TIA.
> Stephan
> 
> -- 
> Stephan E. Schlierf M.A.
> - chief concept & design developer -
> speed2web GmbH Germany
> FON: +49 921 99 00 86 12
> FAX: +49 921 99 00 86 70
> http://www.speed2web.de
> 
> 




Re: LyX and gs 6.5

2001-04-05 Thread Stephan E. Schlierf

Am Donnerstag,  5. April 2001 15:19 schrieb Tuukka Toivonen:
> On Thu, 5 Apr 2001, Tuukka Toivonen wrote:
> > You must configure gs to NOT compress the images lossy. Use lossless
> > compression or no compression at all. I don't know how to tell that to
> > gs, but read the documentation.
>
> Looking quickly at /usr/doc/ghostscript-5.50/Ps2pdf.htm it appears that
> you must use option "AutoFilterxxxImages":
> --
> "AutoFilterxxxImages doesn't examine the image to decide between JPEG and
> LZW/Flate compression: it always uses LZW/Flate compression."
> --
> Flate is lossless (ala gzip) compression. However, I couldn't find from
> the manual HOW to give this command to ps2pdf.

Hm, I just guessed and tried

ps2pdf -dAutoFilterColorImages=false

This didn't produce an error message, but it didn't produce good pictures, 
too.

>
> Hopefully gs 6.50 has better documentation than 5.50.

No, not really.

Thank you very much,

Regards,

Stephan
-- 
Stephan E. Schlierf M.A.
- chief concept & design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de




Re: LyX and gs 6.5

2001-04-05 Thread Tuukka Toivonen

On Thu, 5 Apr 2001, Stephan E. Schlierf wrote:

> Hm, more and more I come to the point that this is a problem with gs 6.50. 

Ah! Now I know exactly what is the problem. The images in your PDF are
compressed using a lossy compression, you could think as if they are
converted to JPEGs.

You must configure gs to NOT compress the images lossy. Use lossless
compression or no compression at all. I don't know how to tell that to gs,
but read the documentation.

Some background: JPG uses DCT-transform on 8x8 blocks and quantizes the
coefficients. This will be very bad for computer-generated images that
have sharp edges, like your screen captures. When you examine some text
label on the grey background, you can see that the text causes noise
inside the whole 8x8-pixel block where it resides.

You might think about using less compression to have better quality
pictures. This doesn't work very well. JPEG-compression style is just
completely unsuited for this kind of images, and you must not to use it at
all.




Re: LyX and gs 6.5

2001-04-05 Thread Herbert Voss

"Stephan E. Schlierf" wrote:
> 
> Hm, more and more I come to the point that this is a problem with gs 6.50.
> But I would be interested if you have the same problems displaying the
> attached file by acroread or other pdf-viewers.

this is only a little bit better, but always the same.
if i need screenshots with text, i choose a least 
1600x1200 for the monitor, than they are a little bit
better.

Herbert

-- 
http:[EMAIL PROTECTED]



Re: LyX and gs 6.5

2001-04-05 Thread Tuukka Toivonen

On Thu, 5 Apr 2001, Tuukka Toivonen wrote:

> You must configure gs to NOT compress the images lossy. Use lossless
> compression or no compression at all. I don't know how to tell that to gs,
> but read the documentation.

Looking quickly at /usr/doc/ghostscript-5.50/Ps2pdf.htm it appears that
you must use option "AutoFilterxxxImages":
--
"AutoFilterxxxImages doesn't examine the image to decide between JPEG and
LZW/Flate compression: it always uses LZW/Flate compression." 
--
Flate is lossless (ala gzip) compression. However, I couldn't find from
the manual HOW to give this command to ps2pdf.

Hopefully gs 6.50 has better documentation than 5.50.




Re: LyX and gs 6.5

2001-04-05 Thread Stephan E. Schlierf

Am Donnerstag,  5. April 2001 15:03 schrieb Herbert Voss:
> "Stephan E. Schlierf" wrote:
> > Hm, more and more I come to the point that this is a problem with gs
> > 6.50. But I would be interested if you have the same problems displaying
> > the attached file by acroread or other pdf-viewers.
>
> this is only a little bit better, but always the same.
> if i need screenshots with text, i choose a least
> 1600x1200 for the monitor, than they are a little bit
> better.
>
> Herbert

I tested it now with gs 5.50 (as Tuukka mentioned a few eMails ago) and now 
the screenshots are displayed as I want them to.
In fact, it seems to be a "gs 6.50 problem".
Nevertheless, Tuukka and Herbert, thank you very much for your immediate help 
(it's good to know not to be alone outside here :-).

Regards,
Stephan

-- 
Stephan E. Schlierf M.A.
- chief concept & design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de




Re: LyX and gs 6.5

2001-04-05 Thread Herbert Voss

"Stephan E. Schlierf" wrote:
> 
> > > I think I have to be a little bit more precise: The problem I have has
> > > nothing to do with the fonts I use but with included postscript pictures.
> > > The fonts are pretty but the pictures are displayed very smeared.

in fact of the screenshots all text on these ones are 
nothing else than bitmaps. and bitmaps look ugly on 
screen. 

Herbert

-- 
http:[EMAIL PROTECTED]



Re: LyX and gs 6.5

2001-04-05 Thread Stephan E. Schlierf

Am Donnerstag,  5. April 2001 14:35 schrieb Tuukka Toivonen:
> On Thu, 5 Apr 2001, Stephan E. Schlierf wrote:
> > > can you give a short lyx-example file with one picture?
> >
> > Here it comes ...
>
> I don't have any problem here. the eps figures are fine, the postscript is
> fine and the pdf is fine (didn't print it). Only problem I seem to have is
> that if I zoom the pdf file in Acroread up to 800% or so, the blue color
> in figures occasionally changes to red, but this must be a bug in
> acroread, not related to your problem.
>
> But then, I'm using gs 5.50.
>
> You might want to try converting your original images to PNG, inserting
> those in your document and then using pdflatex.
>
> You may also send me a pdf file that shows the problem. I can try if it is
> a problem in pdf file or viewers.

Hm, more and more I come to the point that this is a problem with gs 6.50. 
But I would be interested if you have the same problems displaying the 
attached file by acroread or other pdf-viewers.

TIA.
Stephan

-- 
Stephan E. Schlierf M.A.
- chief concept & design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de


 badpictures.pdf


Re: LyX and gs 6.5

2001-04-05 Thread Tuukka Toivonen

On Thu, 5 Apr 2001, Stephan E. Schlierf wrote:

> > can you give a short lyx-example file with one picture?
> Here it comes ...

I don't have any problem here. the eps figures are fine, the postscript is
fine and the pdf is fine (didn't print it). Only problem I seem to have is
that if I zoom the pdf file in Acroread up to 800% or so, the blue color
in figures occasionally changes to red, but this must be a bug in
acroread, not related to your problem.

But then, I'm using gs 5.50.

You might want to try converting your original images to PNG, inserting
those in your document and then using pdflatex.

You may also send me a pdf file that shows the problem. I can try if it is
a problem in pdf file or viewers.




Re: LyX and gs 6.5

2001-04-05 Thread Stephan E. Schlierf

Am Donnerstag,  5. April 2001 13:45 schrieb Herbert Voss:
> > I think I have to be a little bit more precise: The problem I have has
> > nothing to do with the fonts I use but with included postscript pictures.
> > The fonts are pretty but the pictures are displayed very smeared.
>
> can you give a short lyx-example file with one picture?
>
> Herbert

Here it comes ...

TIA,

Stephan
-- 
Stephan E. Schlierf M.A.
- chief concept & design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de


 example.tgz


Re: LyX and gs 6.5

2001-04-05 Thread Herbert Voss

> I think I have to be a little bit more precise: The problem I have has
> nothing to do with the fonts I use but with included postscript pictures. The
> fonts are pretty but the pictures are displayed very smeared.

can you give a short lyx-example file with one picture?

Herbert

-- 
http:[EMAIL PROTECTED]



Re: LyX and gs 6.5

2001-04-05 Thread Stephan E. Schlierf

Am Donnerstag,  5. April 2001 11:24 schrieb Tuukka Toivonen:
> On Thu, 5 Apr 2001, Stephan E. Schlierf wrote:
> > The problem I have is that included postscript pictures get very ugly
> > when I use the "ps2pdf"-command (that comes with gs 6.5) on a
> > LyX-exported postscript file. They appear quite smeared - on display as
> > well as on paper
>
> Try both acroread and gv to view the pdf files--are there significant
> differences?

No.

>
> Are your fonts outline or bitmapped? You can zoom the letters of the
> postscript document in gv using the middle mouse button. If they become
> jagged, they're bitmapped.
>
> If you have bitmap fonts, select outline fonts by selecting Document
> Layout/Document and pslatex or times.

I think I have to be a little bit more precise: The problem I have has 
nothing to do with the fonts I use but with included postscript pictures. The 
fonts are pretty but the pictures are displayed very smeared.

TIA,

Stephan
-- 
Stephan E. Schlierf M.A.
- chief concept & design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de




Re: LyX and gs 6.5

2001-04-05 Thread Tuukka Toivonen

On Thu, 5 Apr 2001, Stephan E. Schlierf wrote:

> The problem I have is that included postscript pictures get very ugly when I 
> use the "ps2pdf"-command (that comes with gs 6.5) on a LyX-exported 
> postscript file. They appear quite smeared - on display as well as on paper 

Try both acroread and gv to view the pdf files--are there significant
differences?

Are your fonts outline or bitmapped? You can zoom the letters of the
postscript document in gv using the middle mouse button. If they become
jagged, they're bitmapped. 

If you have bitmap fonts, select outline fonts by selecting Document
Layout/Document and pslatex or times.




LyX and gs 6.5

2001-04-05 Thread Stephan E. Schlierf

Hi,

a few days ago there was a discussion about LyX and Ghostscript 6.5 on this 
mailing list. Somebody reported that there are problems concerning the 
collaboration between LyX and gs 6.5 but - afaik - did not specify them.
The problem I have is that included postscript pictures get very ugly when I 
use the "ps2pdf"-command (that comes with gs 6.5) on a LyX-exported 
postscript file. They appear quite smeared - on display as well as on paper 
(but when I have a look at the postscript-file done within LyX via File -> 
Export with a ps-viewer, they're o.k.).
Does anybody have the same problem - and maybe a solution for it ?

TIA

Stephan 
-- 
Stephan E. Schlierf M.A.
- chief concept & design developer -
speed2web GmbH Germany
FON: +49 921 99 00 86 12
FAX: +49 921 99 00 86 70
http://www.speed2web.de