Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-22, Florian Rubach wrote:
 Robert Neumann schrieb:
 Hello,
 I have a problem with the quality of jpg-images.

 ...
 I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
 all new lyx are slower it has to to with the latex)

 Seriously, what do you expect? If you're not willing to upgrade, I don't 
 think there is any possibility to fix _any_ issue...

This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

 Also I can't really imagine any situation where anything regarding lyx 
 and latex takes longer than one could bear.

This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-23, Robert Neumann wrote:
 Hello Wayan,
 I usually use eps for all my vektordrawings, but once in a while I have 
 to include an jpg, but the funny thing is, that it works with Lyx 1.5 
 on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
 Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
 reply to Steve) but when I use the ps2pdf from the new Linux on the old 
 Linux, it still has pixels. So it is very odd to figure out where the 
 problem lies.

Do you scale the figure in question or set a fixed size? Re-sizing pixel
images can lead to bad surprises.

EPS and PDF can both include JPEG and PNG images -- in newer versions.
Some convertors, however, will default to the save old format versions and
convert the image to an internal representation of the pixel data. You will
usually realize this by a huge increase of the file size.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Florian Rubach

Guenter Milde schrieb:

On 2009-05-22, Florian Rubach wrote:
  

Robert Neumann schrieb:


Hello,
I have a problem with the quality of jpg-images.
  


  

...


I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
all new lyx are slower it has to to with the latex)
  


  
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...



This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

  
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.



This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter


Well, seems like the time to apologize. It was my point of view and I 
was wrong. Next time, I try to be more constructive...


Regards,
Florian


Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
Guenter Milde mi...@... writes:

 
 Do you scale the figure in question or set a fixed size? Re-sizing pixel
 images can lead to bad surprises.
yes, I just tried with 100%: No Difference. 

 EPS and PDF can both include JPEG and PNG images -- in newer versions.
 Some convertors, however, will default to the save old format versions and
 convert the image to an internal representation of the pixel data. You will
 usually realize this by a huge increase of the file size.
I found a solution which is acceptable for me: I export it from CorelDraw as a
grayscale-Gif. This works fairly well, at least I can life with that...
Regards Robert




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann

 Well, seems like the time to apologize. It was my point of view and I 
 was wrong. Next time, I try to be more constructive...

Accepted;-)
Next time I have a problem, I will post the link to the old thread about the
strange fact that the newer latex takes more than twice the time immediately. It
could seem a bit weird, that I don't want to upgrade...

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

Regards
Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-25, Robert Neumann wrote:
 Guenter Milde mi...@... writes:

 I found a solution which is acceptable for me: I export it from
 CorelDraw as a grayscale-Gif. This works fairly well, at least I can
 life with that... Regards Robert

Fine. Generally, JPEG is not suited for drawings or any images with
sharp lines. It is designed for fotographies with smoth gradients.
If it worked well with some images, this might just be a coincidence.

The rule of thumb I use is

* if possible, use a vector format (SVG, PDF, EPS)

* for a pixel graphic with few colours and sharp lines, use a
  lossless pixel comprssion (PNG or GIF, TIFF)
  
* for photo images (smoth gradient, many colours) use JPEG.

Günter  



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
 
 If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
 type 2 and you will have best quality and no pixelated contours.

thats what I did, normaly I do the complete drawing but in this case I had to
include a jg.
With GIF-Export it works fairly well, thats what I found out the last days.
Regards Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-22, Florian Rubach wrote:
 Robert Neumann schrieb:
 Hello,
 I have a problem with the quality of jpg-images.

 ...
 I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
 all new lyx are slower it has to to with the latex)

 Seriously, what do you expect? If you're not willing to upgrade, I don't 
 think there is any possibility to fix _any_ issue...

This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

 Also I can't really imagine any situation where anything regarding lyx 
 and latex takes longer than one could bear.

This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-23, Robert Neumann wrote:
 Hello Wayan,
 I usually use eps for all my vektordrawings, but once in a while I have 
 to include an jpg, but the funny thing is, that it works with Lyx 1.5 
 on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
 Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
 reply to Steve) but when I use the ps2pdf from the new Linux on the old 
 Linux, it still has pixels. So it is very odd to figure out where the 
 problem lies.

Do you scale the figure in question or set a fixed size? Re-sizing pixel
images can lead to bad surprises.

EPS and PDF can both include JPEG and PNG images -- in newer versions.
Some convertors, however, will default to the save old format versions and
convert the image to an internal representation of the pixel data. You will
usually realize this by a huge increase of the file size.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Florian Rubach

Guenter Milde schrieb:

On 2009-05-22, Florian Rubach wrote:
  

Robert Neumann schrieb:


Hello,
I have a problem with the quality of jpg-images.
  


  

...


I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
all new lyx are slower it has to to with the latex)
  


  
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...



This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

  
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.



This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter


Well, seems like the time to apologize. It was my point of view and I 
was wrong. Next time, I try to be more constructive...


Regards,
Florian


Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
Guenter Milde mi...@... writes:

 
 Do you scale the figure in question or set a fixed size? Re-sizing pixel
 images can lead to bad surprises.
yes, I just tried with 100%: No Difference. 

 EPS and PDF can both include JPEG and PNG images -- in newer versions.
 Some convertors, however, will default to the save old format versions and
 convert the image to an internal representation of the pixel data. You will
 usually realize this by a huge increase of the file size.
I found a solution which is acceptable for me: I export it from CorelDraw as a
grayscale-Gif. This works fairly well, at least I can life with that...
Regards Robert




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann

 Well, seems like the time to apologize. It was my point of view and I 
 was wrong. Next time, I try to be more constructive...

Accepted;-)
Next time I have a problem, I will post the link to the old thread about the
strange fact that the newer latex takes more than twice the time immediately. It
could seem a bit weird, that I don't want to upgrade...

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

Regards
Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-25, Robert Neumann wrote:
 Guenter Milde mi...@... writes:

 I found a solution which is acceptable for me: I export it from
 CorelDraw as a grayscale-Gif. This works fairly well, at least I can
 life with that... Regards Robert

Fine. Generally, JPEG is not suited for drawings or any images with
sharp lines. It is designed for fotographies with smoth gradients.
If it worked well with some images, this might just be a coincidence.

The rule of thumb I use is

* if possible, use a vector format (SVG, PDF, EPS)

* for a pixel graphic with few colours and sharp lines, use a
  lossless pixel comprssion (PNG or GIF, TIFF)
  
* for photo images (smoth gradient, many colours) use JPEG.

Günter  



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
 
 If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
 type 2 and you will have best quality and no pixelated contours.

thats what I did, normaly I do the complete drawing but in this case I had to
include a jg.
With GIF-Export it works fairly well, thats what I found out the last days.
Regards Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-22, Florian Rubach wrote:
> Robert Neumann schrieb:
>> Hello,
>> I have a problem with the quality of jpg-images.

> ...
>> I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
>> all new lyx are slower it has to to with the latex)

> Seriously, what do you expect? If you're not willing to upgrade, I don't 
> think there is any possibility to fix _any_ issue...

This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

> Also I can't really imagine any situation where anything regarding lyx 
> and latex takes longer than one could bear.

This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-23, Robert Neumann wrote:
> Hello Wayan,
> I usually use eps for all my vektordrawings, but once in a while I have 
> to include an jpg, but the funny thing is, that it works with Lyx 1.5 
> on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
> Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
> reply to Steve) but when I use the ps2pdf from the new Linux on the old 
> Linux, it still has pixels. So it is very odd to figure out where the 
> problem lies.

Do you scale the figure in question or set a fixed size? Re-sizing pixel
images can lead to bad surprises.

EPS and PDF can both "include" JPEG and PNG images -- in newer versions.
Some convertors, however, will default to the "save" old format versions and
convert the image to an internal representation of the pixel data. You will
usually realize this by a huge increase of the file size.

Günter



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Florian Rubach

Guenter Milde schrieb:

On 2009-05-22, Florian Rubach wrote:
  

Robert Neumann schrieb:


Hello,
I have a problem with the quality of jpg-images.
  


  

...


I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because
all new lyx are slower it has to to with the latex)
  


  
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...



This is simply not true. Especially the mentioned problem has nothing
to do with the LyX version!

  
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.



This very much depends on what one could bear and on the available
hardware. Faster than Word does not mean acceptable or nice to everyone.

Günter


Well, seems like the time to apologize. It was my point of view and I 
was wrong. Next time, I try to be more constructive...


Regards,
Florian


Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
Guenter Milde  writes:

 
> Do you scale the figure in question or set a fixed size? Re-sizing pixel
> images can lead to bad surprises.
yes, I just tried with 100%: No Difference. 

> EPS and PDF can both "include" JPEG and PNG images -- in newer versions.
> Some convertors, however, will default to the "save" old format versions and
> convert the image to an internal representation of the pixel data. You will
> usually realize this by a huge increase of the file size.
I found a solution which is acceptable for me: I export it from CorelDraw as a
grayscale-Gif. This works fairly well, at least I can life with that...
Regards Robert




Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann

> Well, seems like the time to apologize. It was my point of view and I 
> was wrong. Next time, I try to be more constructive...

Accepted;-)
Next time I have a problem, I will post the link to the old thread about the
strange fact that the newer latex takes more than twice the time immediately. It
could seem a bit weird, that I don't want to upgrade...

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

Regards
Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Guenter Milde
On 2009-05-25, Robert Neumann wrote:
> Guenter Milde  writes:

> I found a solution which is acceptable for me: I export it from
> CorelDraw as a grayscale-Gif. This works fairly well, at least I can
> life with that... Regards Robert

Fine. Generally, JPEG is not suited for drawings or any images with
sharp lines. It is designed for fotographies with smoth gradients.
If it worked well with some images, this might just be a coincidence.

The rule of thumb I use is

* if possible, use a vector format (SVG, PDF, EPS)

* for a pixel graphic with few colours and sharp lines, use a
  lossless pixel comprssion (PNG or GIF, TIFF)
  
* for photo images (smoth gradient, many colours) use JPEG.

Günter  



Re: Problems with jpg-quality with ps2pdf

2009-05-25 Thread Robert Neumann
 
> If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
> type 2 and you will have best quality and no pixelated contours.

thats what I did, normaly I do the complete drawing but in this case I had to
include a jg.
With GIF-Export it works fairly well, thats what I found out the last days.
Regards Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread I Wayan Warmada

Hallo Robert,
actually, this is not the problem of LyX nor LaTeX, but the problem of selected 
type of figure format. You made a vector figure but you save as a loosy 
compressed raster format. If you want the same figure as in Corel, either you 
use eps format (as suggested by Yago), or you use tiff with 450 or 600 dpi 
resolution (or you may compress as PNG). I prefer 600 dpi tiff format. You have 
only 10 figure, I think no problem with 600 dpi.

Some eps from Corel may not be opened by some eps rendering program (like gv or 
epstopdf). If so, you can remove unneeded part of eps file (using text editor), 
for example the unknown text befor %!PS-Adobe-3.0 EPSF-3.0 and after %%EOF (the 
newer Corel may not produce it).

Wayan

--- On Fri, 5/22/09, Yago diazd...@ono.com wrote:

 If you use Coreldraw, don't export to
 jpg you graphic, but directly to eps type 2 and you will
 have best quality and no pixelated contours.

 - Original Message - From: Robert Neumann ro.neum...@web.de
 To: lyx-users@lists.lyx.org
 Sent: Friday, May 22, 2009 10:32 AM
 Subject: Problems with jpg-quality with ps2pdf
 
 
  Hello,
  I have a problem with the quality of jpg-images.
  I have a jpg image with best quality, made with
 coreldraw (actually I use
  coreldraw to to work on the existing jpg-file, which
 contains function-graphs
  and other curves)
  When I open it, the quality is good, there are no
 little dots from the
  compression around the numbers.
  Them I create a pdf with ps2pdf and I get lots of
 these little dots.
  So the jpg quality seems to be reduced by lyx during
 the export process, because
  the dvi is fine.
  I just need to use ps2pdf, because the pdf is
 processed at another place and
  they can only deal with pdfs made with ps2pdf
  I' using Lyx 1.3.4 on a Suse Linux (and I dont want to
 update, because all new
  lyx are slower it has to to with the latex)
  Thanks Robert
 


  


Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann

 What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
 system (using the same LaTeX installation), do you see a delay then?

As far as I remember: no. But I remember that it was extremly difficult to
install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that
came with the distribution. (And I'm not such a Linux Pro that I could override
this).
I just installed a newer Linux with a newer Lyx and was very surprised to find
out, that everything was slow suddenly.






Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Jürgen Spitzmüller
Robert Neumann wrote:
 As far as I remember: no. But I remember that it was extremly difficult to
 install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx,
 that came with the distribution. (And I'm not such a Linux Pro that I could
 override this).

It will certainly be difficult to install LyX 1.6 on such an old system, since 
the requirements (compiler, Qt 4 etc.) changed too much, especially if you 
don't want to compile yourself.

Jürgen


Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Abdelrazak Younes

Robert Neumann wrote:
What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
system (using the same LaTeX installation), do you see a delay then?


As far as I remember: no. But I remember that it was extremly difficult to
install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that
came with the distribution. (And I'm not such a Linux Pro that I could override
this).
I just installed a newer Linux with a newer Lyx and was very surprised to find
out, that everything was slow suddenly.


Hi Robert,

You should try nevetheless 1.6.x because it could well be that it is 
much faster now than 1.3 thanks to the converter cache. Basically, LyX 
now store and reuse any converted graphics.


Abdel.



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann
Hi Steve,
thanks for the shell skript. I will work with this later, unfortunately I have
only my old Lyx 1.3.4 on an old Suse Linux 9.1 and because of YAST I could not
install a newer Lyx on the same machine. But I have a Lyx 1.5 on a Suse Linux 
11.
It is a strange situation now:
- I tried with Lyx 1.5 (Suse 11): no pixels
- I checked the ps-File on Lyx 1.3 (Suse 9.1): no pixels

So I figured out that the problem would be with ps2pdf on the old linux. I
replaced the ps2pdf on the Suse 9.1 with the one from the Linux 11: still 
pixels.
So this seems really strange to me, cause I can see no other source for the
pixelation than the ps2pdf, if the ps is ok...
Regards
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann
Hello Wayan,
I usually use eps for all my vektordrawings, but once in a while I have 
to include an jpg, but the funny thing is, that it works with Lyx 1.5 
on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
reply to Steve) but when I use the ps2pdf from the new Linux on the old 
Linux, it still has pixels. So it is very odd to figure out where the 
problem lies.
Regards
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread I Wayan Warmada

Hallo Robert,
actually, this is not the problem of LyX nor LaTeX, but the problem of selected 
type of figure format. You made a vector figure but you save as a loosy 
compressed raster format. If you want the same figure as in Corel, either you 
use eps format (as suggested by Yago), or you use tiff with 450 or 600 dpi 
resolution (or you may compress as PNG). I prefer 600 dpi tiff format. You have 
only 10 figure, I think no problem with 600 dpi.

Some eps from Corel may not be opened by some eps rendering program (like gv or 
epstopdf). If so, you can remove unneeded part of eps file (using text editor), 
for example the unknown text befor %!PS-Adobe-3.0 EPSF-3.0 and after %%EOF (the 
newer Corel may not produce it).

Wayan

--- On Fri, 5/22/09, Yago diazd...@ono.com wrote:

 If you use Coreldraw, don't export to
 jpg you graphic, but directly to eps type 2 and you will
 have best quality and no pixelated contours.

 - Original Message - From: Robert Neumann ro.neum...@web.de
 To: lyx-users@lists.lyx.org
 Sent: Friday, May 22, 2009 10:32 AM
 Subject: Problems with jpg-quality with ps2pdf
 
 
  Hello,
  I have a problem with the quality of jpg-images.
  I have a jpg image with best quality, made with
 coreldraw (actually I use
  coreldraw to to work on the existing jpg-file, which
 contains function-graphs
  and other curves)
  When I open it, the quality is good, there are no
 little dots from the
  compression around the numbers.
  Them I create a pdf with ps2pdf and I get lots of
 these little dots.
  So the jpg quality seems to be reduced by lyx during
 the export process, because
  the dvi is fine.
  I just need to use ps2pdf, because the pdf is
 processed at another place and
  they can only deal with pdfs made with ps2pdf
  I' using Lyx 1.3.4 on a Suse Linux (and I dont want to
 update, because all new
  lyx are slower it has to to with the latex)
  Thanks Robert
 


  


Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann

 What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
 system (using the same LaTeX installation), do you see a delay then?

As far as I remember: no. But I remember that it was extremly difficult to
install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that
came with the distribution. (And I'm not such a Linux Pro that I could override
this).
I just installed a newer Linux with a newer Lyx and was very surprised to find
out, that everything was slow suddenly.






Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Jürgen Spitzmüller
Robert Neumann wrote:
 As far as I remember: no. But I remember that it was extremly difficult to
 install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx,
 that came with the distribution. (And I'm not such a Linux Pro that I could
 override this).

It will certainly be difficult to install LyX 1.6 on such an old system, since 
the requirements (compiler, Qt 4 etc.) changed too much, especially if you 
don't want to compile yourself.

Jürgen


Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Abdelrazak Younes

Robert Neumann wrote:
What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
system (using the same LaTeX installation), do you see a delay then?


As far as I remember: no. But I remember that it was extremly difficult to
install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that
came with the distribution. (And I'm not such a Linux Pro that I could override
this).
I just installed a newer Linux with a newer Lyx and was very surprised to find
out, that everything was slow suddenly.


Hi Robert,

You should try nevetheless 1.6.x because it could well be that it is 
much faster now than 1.3 thanks to the converter cache. Basically, LyX 
now store and reuse any converted graphics.


Abdel.



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann
Hi Steve,
thanks for the shell skript. I will work with this later, unfortunately I have
only my old Lyx 1.3.4 on an old Suse Linux 9.1 and because of YAST I could not
install a newer Lyx on the same machine. But I have a Lyx 1.5 on a Suse Linux 
11.
It is a strange situation now:
- I tried with Lyx 1.5 (Suse 11): no pixels
- I checked the ps-File on Lyx 1.3 (Suse 9.1): no pixels

So I figured out that the problem would be with ps2pdf on the old linux. I
replaced the ps2pdf on the Suse 9.1 with the one from the Linux 11: still 
pixels.
So this seems really strange to me, cause I can see no other source for the
pixelation than the ps2pdf, if the ps is ok...
Regards
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann
Hello Wayan,
I usually use eps for all my vektordrawings, but once in a while I have 
to include an jpg, but the funny thing is, that it works with Lyx 1.5 
on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
reply to Steve) but when I use the ps2pdf from the new Linux on the old 
Linux, it still has pixels. So it is very odd to figure out where the 
problem lies.
Regards
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread I Wayan Warmada

Hallo Robert,
actually, this is not the problem of LyX nor LaTeX, but the problem of selected 
type of figure format. You made a vector figure but you save as a loosy 
compressed raster format. If you want the same figure as in Corel, either you 
use eps format (as suggested by Yago), or you use tiff with 450 or 600 dpi 
resolution (or you may compress as PNG). I prefer 600 dpi tiff format. You have 
only 10 figure, I think no problem with 600 dpi.

Some eps from Corel may not be opened by some eps rendering program (like gv or 
epstopdf). If so, you can remove unneeded part of eps file (using text editor), 
for example the unknown text befor %!PS-Adobe-3.0 EPSF-3.0 and after %%EOF (the 
newer Corel may not produce it).

Wayan

--- On Fri, 5/22/09, Yago  wrote:

> If you use Coreldraw, don't export to
> jpg you graphic, but directly to eps type 2 and you will
> have best quality and no pixelated contours.
>
> - Original Message - From: "Robert Neumann" 
> To: 
> Sent: Friday, May 22, 2009 10:32 AM
> Subject: Problems with jpg-quality with ps2pdf
> 
> 
> > Hello,
> > I have a problem with the quality of jpg-images.
> > I have a jpg image with best quality, made with
> coreldraw (actually I use
> > coreldraw to to work on the existing jpg-file, which
> contains function-graphs
> > and other curves)
> > When I open it, the quality is good, there are no
> "little dots" from the
> > compression around the numbers.
> > Them I create a pdf with ps2pdf and I get lots of
> these little dots.
> > So the jpg quality seems to be reduced by lyx during
> the export process, because
> > the dvi is fine.
> > I just need to use ps2pdf, because the pdf is
> processed at another place and
> > they can only deal with pdfs made with ps2pdf
> > I' using Lyx 1.3.4 on a Suse Linux (and I dont want to
> update, because all new
> > lyx are slower it has to to with the latex)
> > Thanks Robert
> 


  


Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann

> What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
> system (using the same LaTeX installation), do you see a delay then?

As far as I remember: no. But I remember that it was extremly difficult to
install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that
came with the distribution. (And I'm not such a Linux Pro that I could override
this).
I just installed a newer Linux with a newer Lyx and was very surprised to find
out, that everything was slow suddenly.






Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Jürgen Spitzmüller
Robert Neumann wrote:
> As far as I remember: no. But I remember that it was extremly difficult to
> install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx,
> that came with the distribution. (And I'm not such a Linux Pro that I could
> override this).

It will certainly be difficult to install LyX 1.6 on such an old system, since 
the requirements (compiler, Qt 4 etc.) changed too much, especially if you 
don't want to compile yourself.

Jürgen


Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Abdelrazak Younes

Robert Neumann wrote:
What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
system (using the same LaTeX installation), do you see a delay then?


As far as I remember: no. But I remember that it was extremly difficult to
install 1.4 on the SuSE Linux, because of YAST, which sticks to the lyx, that
came with the distribution. (And I'm not such a Linux Pro that I could override
this).
I just installed a newer Linux with a newer Lyx and was very surprised to find
out, that everything was slow suddenly.


Hi Robert,

You should try nevetheless 1.6.x because it could well be that it is 
much faster now than 1.3 thanks to the converter cache. Basically, LyX 
now store and reuse any converted graphics.


Abdel.



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann
Hi Steve,
thanks for the shell skript. I will work with this later, unfortunately I have
only my old Lyx 1.3.4 on an old Suse Linux 9.1 and because of YAST I could not
install a newer Lyx on the same machine. But I have a Lyx 1.5 on a Suse Linux 
11.
It is a strange situation now:
- I tried with Lyx 1.5 (Suse 11): no pixels
- I checked the ps-File on Lyx 1.3 (Suse 9.1): no pixels

So I figured out that the problem would be with ps2pdf on the old linux. I
replaced the ps2pdf on the Suse 9.1 with the one from the Linux 11: still 
pixels.
So this seems really strange to me, cause I can see no other source for the
pixelation than the ps2pdf, if the ps is ok...
Regards
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-23 Thread Robert Neumann
Hello Wayan,
I usually use eps for all my vektordrawings, but once in a while I have 
to include an jpg, but the funny thing is, that it works with Lyx 1.5 
on a Suse 11,so it seems to be possible. The ps-File on my old Suse with
Lyx 1.3 has no pixels either when I export to ps(as I just posted in 
reply to Steve) but when I use the ps2pdf from the new Linux on the old 
Linux, it still has pixels. So it is very odd to figure out where the 
problem lies.
Regards
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Florian Rubach

Robert Neumann schrieb:

Hello,
I have a problem with the quality of jpg-images.
  

...

I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all new
lyx are slower it has to to with the latex)
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...
If your  quality-issue is pressing, you should try out lyx 1.6.2, maybe 
on another machine, and just see if the quality still remains bad.
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.

Thanks Robert

Regards,
Florian


Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Robert Neumann
Thankx for the very nice advice, especially the sarcastic note!
I write books with about 250 pages and 10 pic. On the old Lyx it takes 
around 25 sec. to produce a pdf, on the newer lyx it takes around 40 sec.
When I do the final work I have to produce quite a lot of pdfs to check 
the pages. So just give it a try and count twenty times to 40... this is 
very hard to stand.
So, thats why I HAVE to use the old Lyx and I hope somebody has a better 
advice...
Regards
Robert






Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Yago
If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
type 2 and you will have best quality and no pixelated contours.
- Original Message - 
From: Robert Neumann ro.neum...@web.de

To: lyx-users@lists.lyx.org
Sent: Friday, May 22, 2009 10:32 AM
Subject: Problems with jpg-quality with ps2pdf



Hello,
I have a problem with the quality of jpg-images.
I have a jpg image with best quality, made with coreldraw (actually I use
coreldraw to to work on the existing jpg-file, which contains 
function-graphs

and other curves)
When I open it, the quality is good, there are no little dots from the
compression around the numbers.
Them I create a pdf with ps2pdf and I get lots of these little dots.
So the jpg quality seems to be reduced by lyx during the export process, 
because

the dvi is fine.
I just need to use ps2pdf, because the pdf is processed at another place 
and

they can only deal with pdfs made with ps2pdf
I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all 
new

lyx are slower it has to to with the latex)
Thanks Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Steve Litt
On Friday 22 May 2009 12:41:20 pm Robert Neumann wrote:
 Thankx for the very nice advice, especially the sarcastic note!
 I write books with about 250 pages and 10 pic. On the old Lyx it takes
 around 25 sec. to produce a pdf, on the newer lyx it takes around 40 sec.
 When I do the final work I have to produce quite a lot of pdfs to check
 the pages. So just give it a try and count twenty times to 40... this is
 very hard to stand.
 So, thats why I HAVE to use the old Lyx and I hope somebody has a better
 advice...
 Regards
 Robert

Hi Robert,

The fact that you have two different versions of Linux running is a 
troubleshooting advantage, because you can exploit the differences. I would 
pay particular attention to EXACTLY HOW LyX is compiled to PDF. It could be 
that your 1.3.4 is set up to do the conversion differently, which could 
account for its speedier performance AND its pixellation.

One way you can put more of the variables in your own hands is to make a 
shellscript to do the conversion -- something like this:

#!/bin/bash
StyleFile=rl_21.ist
LyxCmd=lyx-1.5.6

rm -f $1.aux
rm -f $1.dvi
rm -f $1.ps
rm -f $1.pdf
rm -f $1.idx
rm -f $1.ilg
rm -f $1.ind
rm -f $1.log
rm -f $1.tex
rm -f $1.toc

$LyxCmd --export latex $1.lyx

latex $1.tex

if test -f $StyleFile; then
makeindex -s $StyleFile $1.idx
else
makeindex $1.idx
fi

if grep -qi error $1.ilg; then
echo ERROR: Inspect $1.ilg and $1.ind!
gvim $1.ilg $1.ind
echo ERROR: Inspect $1.ilg and $1.ind!
else
latex $1.tex
dvips -o $1.ps $1.dvi
#   ps2pdf $1.ps
ps2pdf12 $1.ps
#   xpdf $1.pdf 
fi

Anyway, theoretically if you use this shellscript on both LyX versions you're 
doing the same thing and any discrepancy should be due to the LyX version. 
You can run timing tests on each process to see what's really gobbling up 
your time. Your goal is to get something with your current 1.3.4's speed and 
later LyX's faithful graphical rendering.

I used 1.3.4 for a long time. It was stable, robust, and it still used my pet 
interface xforms /* Litt ducks and runs */. But 1.3.4 didn't have character 
styles, and in my opinion if it doesn't have character styles, it's not 
really styles-based -- it's fingerpainting. I'd recommend you find a way to 
make 1.5x or 1.6x perform as quickly as 1.3.4 did. Just find out what's 
gobbling your time, and find a way to optimize it.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Robert Neumann

 It would be interesting to know what exactly causes this difference.

I spent two days on this, a couple of years ago, then I gave up and switched
back to the old Lyx. You can find the discussion here:

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

It was definitely a big time-difference, with the books I was writing on with my
last machine, it increased from 8 sec. to 25 or so and this feels like hours;-)
I think it is no lyx problem but a latex-caused problem.
Regards 
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Jürgen Spitzmüller
Robert Neumann wrote:
 It was definitely a big time-difference, with the books I was writing on
 with my last machine, it increased from 8 sec. to 25 or so and this feels
 like hours;-) I think it is no lyx problem but a latex-caused problem.

What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
system (using the same LaTeX installation), do you see a delay then?

Jürgen


Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Florian Rubach

Robert Neumann schrieb:

Hello,
I have a problem with the quality of jpg-images.
  

...

I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all new
lyx are slower it has to to with the latex)
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...
If your  quality-issue is pressing, you should try out lyx 1.6.2, maybe 
on another machine, and just see if the quality still remains bad.
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.

Thanks Robert

Regards,
Florian


Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Robert Neumann
Thankx for the very nice advice, especially the sarcastic note!
I write books with about 250 pages and 10 pic. On the old Lyx it takes 
around 25 sec. to produce a pdf, on the newer lyx it takes around 40 sec.
When I do the final work I have to produce quite a lot of pdfs to check 
the pages. So just give it a try and count twenty times to 40... this is 
very hard to stand.
So, thats why I HAVE to use the old Lyx and I hope somebody has a better 
advice...
Regards
Robert






Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Yago
If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
type 2 and you will have best quality and no pixelated contours.
- Original Message - 
From: Robert Neumann ro.neum...@web.de

To: lyx-users@lists.lyx.org
Sent: Friday, May 22, 2009 10:32 AM
Subject: Problems with jpg-quality with ps2pdf



Hello,
I have a problem with the quality of jpg-images.
I have a jpg image with best quality, made with coreldraw (actually I use
coreldraw to to work on the existing jpg-file, which contains 
function-graphs

and other curves)
When I open it, the quality is good, there are no little dots from the
compression around the numbers.
Them I create a pdf with ps2pdf and I get lots of these little dots.
So the jpg quality seems to be reduced by lyx during the export process, 
because

the dvi is fine.
I just need to use ps2pdf, because the pdf is processed at another place 
and

they can only deal with pdfs made with ps2pdf
I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all 
new

lyx are slower it has to to with the latex)
Thanks Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Steve Litt
On Friday 22 May 2009 12:41:20 pm Robert Neumann wrote:
 Thankx for the very nice advice, especially the sarcastic note!
 I write books with about 250 pages and 10 pic. On the old Lyx it takes
 around 25 sec. to produce a pdf, on the newer lyx it takes around 40 sec.
 When I do the final work I have to produce quite a lot of pdfs to check
 the pages. So just give it a try and count twenty times to 40... this is
 very hard to stand.
 So, thats why I HAVE to use the old Lyx and I hope somebody has a better
 advice...
 Regards
 Robert

Hi Robert,

The fact that you have two different versions of Linux running is a 
troubleshooting advantage, because you can exploit the differences. I would 
pay particular attention to EXACTLY HOW LyX is compiled to PDF. It could be 
that your 1.3.4 is set up to do the conversion differently, which could 
account for its speedier performance AND its pixellation.

One way you can put more of the variables in your own hands is to make a 
shellscript to do the conversion -- something like this:

#!/bin/bash
StyleFile=rl_21.ist
LyxCmd=lyx-1.5.6

rm -f $1.aux
rm -f $1.dvi
rm -f $1.ps
rm -f $1.pdf
rm -f $1.idx
rm -f $1.ilg
rm -f $1.ind
rm -f $1.log
rm -f $1.tex
rm -f $1.toc

$LyxCmd --export latex $1.lyx

latex $1.tex

if test -f $StyleFile; then
makeindex -s $StyleFile $1.idx
else
makeindex $1.idx
fi

if grep -qi error $1.ilg; then
echo ERROR: Inspect $1.ilg and $1.ind!
gvim $1.ilg $1.ind
echo ERROR: Inspect $1.ilg and $1.ind!
else
latex $1.tex
dvips -o $1.ps $1.dvi
#   ps2pdf $1.ps
ps2pdf12 $1.ps
#   xpdf $1.pdf 
fi

Anyway, theoretically if you use this shellscript on both LyX versions you're 
doing the same thing and any discrepancy should be due to the LyX version. 
You can run timing tests on each process to see what's really gobbling up 
your time. Your goal is to get something with your current 1.3.4's speed and 
later LyX's faithful graphical rendering.

I used 1.3.4 for a long time. It was stable, robust, and it still used my pet 
interface xforms /* Litt ducks and runs */. But 1.3.4 didn't have character 
styles, and in my opinion if it doesn't have character styles, it's not 
really styles-based -- it's fingerpainting. I'd recommend you find a way to 
make 1.5x or 1.6x perform as quickly as 1.3.4 did. Just find out what's 
gobbling your time, and find a way to optimize it.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Robert Neumann

 It would be interesting to know what exactly causes this difference.

I spent two days on this, a couple of years ago, then I gave up and switched
back to the old Lyx. You can find the discussion here:

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

It was definitely a big time-difference, with the books I was writing on with my
last machine, it increased from 8 sec. to 25 or so and this feels like hours;-)
I think it is no lyx problem but a latex-caused problem.
Regards 
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Jürgen Spitzmüller
Robert Neumann wrote:
 It was definitely a big time-difference, with the books I was writing on
 with my last machine, it increased from 8 sec. to 25 or so and this feels
 like hours;-) I think it is no lyx problem but a latex-caused problem.

What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
system (using the same LaTeX installation), do you see a delay then?

Jürgen


Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Florian Rubach

Robert Neumann schrieb:

Hello,
I have a problem with the quality of jpg-images.
  

...

I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all new
lyx are slower it has to to with the latex)
Seriously, what do you expect? If you're not willing to upgrade, I don't 
think there is any possibility to fix _any_ issue...
If your  quality-issue is pressing, you should try out lyx 1.6.2, maybe 
on another machine, and just see if the quality still remains bad.
Also I can't really imagine any situation where anything regarding lyx 
and latex takes longer than one could bear.

Thanks Robert

Regards,
Florian


Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Robert Neumann
Thankx for the very nice advice, especially the sarcastic note!
I write books with about 250 pages and 10 pic. On the "old" Lyx it takes 
around 25 sec. to produce a pdf, on the newer lyx it takes around 40 sec.
When I do the final work I have to produce quite a lot of pdfs to check 
the pages. So just give it a try and count twenty times to 40... this is 
very hard to stand.
So, thats why I HAVE to use the old Lyx and I hope somebody has a better 
advice...
Regards
Robert






Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Yago
If you use Coreldraw, don't export to jpg you graphic, but directly to eps 
type 2 and you will have best quality and no pixelated contours.
- Original Message - 
From: "Robert Neumann" 

To: 
Sent: Friday, May 22, 2009 10:32 AM
Subject: Problems with jpg-quality with ps2pdf



Hello,
I have a problem with the quality of jpg-images.
I have a jpg image with best quality, made with coreldraw (actually I use
coreldraw to to work on the existing jpg-file, which contains 
function-graphs

and other curves)
When I open it, the quality is good, there are no "little dots" from the
compression around the numbers.
Them I create a pdf with ps2pdf and I get lots of these little dots.
So the jpg quality seems to be reduced by lyx during the export process, 
because

the dvi is fine.
I just need to use ps2pdf, because the pdf is processed at another place 
and

they can only deal with pdfs made with ps2pdf
I' using Lyx 1.3.4 on a Suse Linux (and I dont want to update, because all 
new

lyx are slower it has to to with the latex)
Thanks Robert





Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Steve Litt
On Friday 22 May 2009 12:41:20 pm Robert Neumann wrote:
> Thankx for the very nice advice, especially the sarcastic note!
> I write books with about 250 pages and 10 pic. On the "old" Lyx it takes
> around 25 sec. to produce a pdf, on the newer lyx it takes around 40 sec.
> When I do the final work I have to produce quite a lot of pdfs to check
> the pages. So just give it a try and count twenty times to 40... this is
> very hard to stand.
> So, thats why I HAVE to use the old Lyx and I hope somebody has a better
> advice...
> Regards
> Robert

Hi Robert,

The fact that you have two different versions of Linux running is a 
troubleshooting advantage, because you can exploit the differences. I would 
pay particular attention to EXACTLY HOW LyX is compiled to PDF. It could be 
that your 1.3.4 is set up to do the conversion differently, which could 
account for its speedier performance AND its pixellation.

One way you can put more of the variables in your own hands is to make a 
shellscript to do the conversion -- something like this:

#!/bin/bash
StyleFile=rl_21.ist
LyxCmd=lyx-1.5.6

rm -f $1.aux
rm -f $1.dvi
rm -f $1.ps
rm -f $1.pdf
rm -f $1.idx
rm -f $1.ilg
rm -f $1.ind
rm -f $1.log
rm -f $1.tex
rm -f $1.toc

$LyxCmd --export latex $1.lyx

latex $1.tex

if test -f $StyleFile; then
makeindex -s $StyleFile $1.idx
else
makeindex $1.idx
fi

if grep -qi "error" $1.ilg; then
echo ERROR: Inspect $1.ilg and $1.ind!
gvim $1.ilg $1.ind
echo ERROR: Inspect $1.ilg and $1.ind!
else
latex $1.tex
dvips -o $1.ps $1.dvi
#   ps2pdf $1.ps
ps2pdf12 $1.ps
#   xpdf $1.pdf &
fi

Anyway, theoretically if you use this shellscript on both LyX versions you're 
doing the same thing and any discrepancy should be due to the LyX version. 
You can run timing tests on each process to see what's really gobbling up 
your time. Your goal is to get something with your current 1.3.4's speed and 
later LyX's faithful graphical rendering.

I used 1.3.4 for a long time. It was stable, robust, and it still used my pet 
interface xforms /* Litt ducks and runs */. But 1.3.4 didn't have character 
styles, and in my opinion if it doesn't have character styles, it's not 
really styles-based -- it's fingerpainting. I'd recommend you find a way to 
make 1.5x or 1.6x perform as quickly as 1.3.4 did. Just find out what's 
gobbling your time, and find a way to optimize it.

HTH

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Robert Neumann

> It would be interesting to know what exactly causes this difference.

I spent two days on this, a couple of years ago, then I gave up and switched
back to the old Lyx. You can find the discussion here:

http://thread.gmane.org/gmane.editors.lyx.general/34234/focus=34251

It was definitely a big time-difference, with the books I was writing on with my
last machine, it increased from 8 sec. to 25 or so and this feels like hours;-)
I think it is no lyx problem but a latex-caused problem.
Regards 
Robert



Re: Problems with jpg-quality with ps2pdf

2009-05-22 Thread Jürgen Spitzmüller
Robert Neumann wrote:
> It was definitely a big time-difference, with the books I was writing on
> with my last machine, it increased from 8 sec. to 25 or so and this feels
> like hours;-) I think it is no lyx problem but a latex-caused problem.

What I do not understand is:If you compare LyX 1.3 and LyX 1.6 on the same 
system (using the same LaTeX installation), do you see a delay then?

Jürgen