On 16-Nov-18 11:24 AM, [email protected]<mailto:[email protected]> 
wrote:

On Nov 11, 2018, at 12:29 AM, Murat Yildizoglu 
<[email protected]<mailto:[email protected]>> wrote:

I have also observed this in the last version under Osx.

Murat Yildizoglu
Le 11 nov. 2018 à 03:45 +0100, Baris Erkus 
<[email protected]<mailto:[email protected]>>, a écrit :

Hello,

PDF graphics appears to be blurred in LyX when scaled from Graphics Options --> 
LaTeX and LyX options --> Show in LyX --> Scale on Screen.

I am not sure if this is a feature to reduce CPU rendering workload or smtg, 
but it would be really nice to have a clear view of the PDF while working on 
the document rather than looking at it using a PDF viewer.

See MWE and the view from LyX below.

Baris


<phdpemjdejibcjnp.png>

I have only skimmed this thread so apologies if this is off-topic. At least one 
poster mentioned OSX aka OS X aka macOS. The following section in the LyX wiki 
might be useful:

https://wiki.lyx.org/Mac/Mac#toc9

Jerry

Thanks; this was very useful. I juggled around it a bit and this is my 
understanding:

  1.  LyX has a default PDF to PNG converter and associated options. The 
quality of the PNG that comes out of this default converter+options is very low 
and may be the resolution is adjusted to have the same size of the PDF.
  2.  We can define our converter with higher options and improve the quality 
for 100% view, but even for %101 or 99% scaling it goes back to the default 
converter+options and results low quality preview. So, it seems like definitely 
there is a bug here: It does not make sense to have very good quality preview 
at 100% caling and reduced quality at 101% or 99% scaling.
  3.  There is also awkward behavior I observed. Although I set the resolution 
to very high values, the PNG size didnot change on the screen. Normally, 
increasing the resolution should increase the size of the PNG on the screen. 
Maybe something to do with the cache or scaling algorithm in LyX.
  4.  Anyhow, I finally managed to get some nice previews on the screen. The 
problem is that I have to increase the resolution, which increases the view 
size of PNG. So, 100% preview actually shows a PNG image larger than the PDF 
size. Anyhow, it is still useful, since I can scale the preview with LyX 
preview option to put the image to size that I like.
  5.  There were also some awkward behavior when I setup it up so it took about 
an hour to make it work.

The solution is as follows: I defined a new converter from PDF(graphics) to PNG 
with the following ImageMagick converter:

convert -density 200 -trim -quality 100 -sharpen 0x1.0 $$i $$o

See the attached figure for output. I am not sure if ImageMAgick comes with 
LyX, but it is available in all OSs, so should not be a problem to get and use 
it.

I think there is a bug-like behaviour with preview scaling of LyX, so maybe I 
should convert the ticket to bug.

[cid:[email protected]]

Baris

FYI: Email client Thunderbird makes you send replies bottom-post automatically. 
Top-post lovers may want to give a try to it. I am using Thunderbird only for 
LyX mailing list, so you do not need to use it as you main e-mail client. I 
also added the following signature to promote bottom post... :-)

--
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Please bottom-post. Start your reply here:

Reply via email to