Re: PDF graphics is blurred in LyX when scaled

2018-11-16 Thread Baris Erkus
On 16-Nov-18 11:24 AM, list_em...@icloud.com 
wrote:

On Nov 11, 2018, at 12:29 AM, Murat Yildizoglu 
mailto:myi...@gmail.com>> wrote:

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

Murat Yildizoglu
Le 11 nov. 2018 à 03:45 +0100, Baris Erkus 
mailto:bariser...@hotmail.com>>, 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




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:part4.3D8942FE.986C0A04@hotmail.com]

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:


Re: PDF graphics is blurred in LyX when scaled

2018-11-16 Thread Murat Yildizoglu
Thank you Jerry,
It seems that I have already followed this advice some years ago because my 
PDF->PNG converter already contains:

sips --resampleWidth 800 --setProperty format png $$i --out $$o

Maybe 800 is too big, and I have a tendency to ask to LyX to reduce the size of 
the generated bitmaps on the screen. That could give a less crisp image. I will 
change this width and test.


> Le 16 nov. 2018 à 09:24, list_em...@icloud.com a écrit :
> 
> 
>> On Nov 11, 2018, at 12:29 AM, Murat Yildizoglu > > wrote:
>> 
>> I have also observed this in the last version under Osx.
>> 
>> Murat Yildizoglu
>> Le 11 nov. 2018 à 03:45 +0100, Baris Erkus > >, 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
>>> 
>>> 
>>> 
>>> 
>>> 
> 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

--
Prof. Murat Yildizoglu

Université de Bordeaux 
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

murat.yildizo...@u-bordeaux.fr

http://yildizoglu.fr

http://www.twitter.com/yildizoglu





Re: PDF graphics is blurred in LyX when scaled

2018-11-16 Thread list_email

> On Nov 11, 2018, at 12:29 AM, Murat Yildizoglu  wrote:
> 
> I have also observed this in the last version under Osx.
> 
> Murat Yildizoglu
> Le 11 nov. 2018 à 03:45 +0100, Baris Erkus , 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
>> 
>> 
>> 
>> 
>> 
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

Re: PDF graphics is blurred in LyX when scaled

2018-11-15 Thread Daniel Kian Mc Kiernan (the best Daniel of the bunch)

This d_mn'd thread already had both top posting...

On 11/15/18 5:04 AM, Dr Eberhard Lisse wrote:



whenever I see unnecessary full quotes like this I know why
top posting is the right thing to do :-)-O


el

On 15/11/2018 06:32, Baris Erkus wrote:



On 14-Nov-18 11:36 PM, Stephan Witt wrote:

Am 12.11.2018 um 18:53 schrieb Baris Erkus :

On 11/12/2018 4:36 PM, Stephan Witt wrote:

Am 12.11.2018 um 14:03 schrieb Stephen Buonopane :

On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:

On 12-Nov-18 3:38 PM, Kornel Benko wrote:

Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :

On 11/11/2018 19:14, Paul A. Rubin wrote:

On 11/10/18 9:45 PM, Baris Erkus wrote:

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



The image in your PDF file is a bitmap (PNG), so I don't hold out much
hope for being able to zoom it without loss of fidelity.

Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
it and never got any pixels to see. At least it must be an extremely
high resolution bitmap then.

Daniel


Because PNG format is bitmap?
PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced

Kornel


The external graphics is in PDF, which is attached to the original
e-mail; it was generated in Tikz, so it is a vector graphics. No
question about it.  When inserted into LyX, maybe LyX creates a
temporary bitmap or PNG file to show to the user, I am not sure.

It should not be a big thing to show a higher resolution graphics or to
let the user decide for possible performance issues. One day I will be
doing all these small modification by myself, but when that I do not
know... :-)

Baris

Yes LyX creates a PNG file for the on-screen preview within LyX (It also does 
this for the math preview)
If you dig into the LyX temp directory you will find all of the PNG files.

I recall that an older version of LyX (on Mac) did not use PNG for on-screen 
previews, in which case it may be possible to revert to the older behavior even 
in 2.3.X?

There are fundamental differences between the handling of SVG and PDF files in 
LyX.

LyX is using Qt plugins to render the images on screen.

For PDF files one has to convert them to temporary bitmap files because there 
is no plugin to render them directly. (Perhaps this is not true anymore.) For 
SVG files there is a plugin. But this one is limited in functionality. There 
was a decision to not use it for on-screen display because of the complaints 
regarding missing details.

The problem with the temporary images is the fixed resolution of the generated 
images. The used cache is not invalidated in case of higher preview zoom 
levels. Furthermore you can have different resolutions at runtime too. In case 
of a machine with multiple monitors with different physical resolutions you get 
different values for moving the LyX window around.

Stephan

This makes sense. Do you think it is reasonable that I put this as a
wish to the tracker?

I think it’s already there… but couldn’t find it ATM.

Stephan


I opened a ticket as a request...

https://www.lyx.org/trac/ticket/11379


...and bottom posting.

Terrorism has won.


Re: PDF graphics is blurred in LyX when scaled

2018-11-15 Thread Dr Eberhard Lisse

whenever I see unnecessary full quotes like this I know why
top posting is the right thing to do :-)-O


el

On 15/11/2018 06:32, Baris Erkus wrote:
> 
> 
> On 14-Nov-18 11:36 PM, Stephan Witt wrote:
>> Am 12.11.2018 um 18:53 schrieb Baris Erkus :
>>> On 11/12/2018 4:36 PM, Stephan Witt wrote:
 Am 12.11.2018 um 14:03 schrieb Stephen Buonopane :
>> On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
>>
>> On 12-Nov-18 3:38 PM, Kornel Benko wrote:
>>> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel 
>>> :
 On 11/11/2018 19:14, Paul A. Rubin wrote:
> On 11/10/18 9:45 PM, Baris Erkus wrote:
>> 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
>>
>>
> The image in your PDF file is a bitmap (PNG), so I don't hold out much
> hope for being able to zoom it without loss of fidelity.
 Why do you think the graphic in the PDF is a bitmap? I have zoomed in 
 on
 it and never got any pixels to see. At least it must be an extremely
 high resolution bitmap then.

 Daniel

>>> Because PNG format is bitmap?
>>> PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
>>>
>>> Kornel
>>>
>> The external graphics is in PDF, which is attached to the original
>> e-mail; it was generated in Tikz, so it is a vector graphics. No
>> question about it.  When inserted into LyX, maybe LyX creates a
>> temporary bitmap or PNG file to show to the user, I am not sure.
>>
>> It should not be a big thing to show a higher resolution graphics or to
>> let the user decide for possible performance issues. One day I will be
>> doing all these small modification by myself, but when that I do not
>> know... :-)
>>
>> Baris
> Yes LyX creates a PNG file for the on-screen preview within LyX (It also 
> does this for the math preview)
> If you dig into the LyX temp directory you will find all of the PNG files.
>
> I recall that an older version of LyX (on Mac) did not use PNG for 
> on-screen previews, in which case it may be possible to revert to the 
> older behavior even in 2.3.X?
 There are fundamental differences between the handling of SVG and PDF 
 files in LyX.

 LyX is using Qt plugins to render the images on screen.

 For PDF files one has to convert them to temporary bitmap files because 
 there is no plugin to render them directly. (Perhaps this is not true 
 anymore.) For SVG files there is a plugin. But this one is limited in 
 functionality. There was a decision to not use it for on-screen display 
 because of the complaints regarding missing details.

 The problem with the temporary images is the fixed resolution of the 
 generated images. The used cache is not invalidated in case of higher 
 preview zoom levels. Furthermore you can have different resolutions at 
 runtime too. In case of a machine with multiple monitors with different 
 physical resolutions you get different values for moving the LyX window 
 around.

 Stephan
>>> This makes sense. Do you think it is reasonable that I put this as a
>>> wish to the tracker?
>> I think it’s already there… but couldn’t find it ATM.
>>
>> Stephan
> 
> I opened a ticket as a request...
> 
> https://www.lyx.org/trac/ticket/11379
> 
> 
> 




Re: PDF graphics is blurred in LyX when scaled

2018-11-14 Thread Baris Erkus


On 14-Nov-18 11:36 PM, Stephan Witt wrote:
> Am 12.11.2018 um 18:53 schrieb Baris Erkus :
>> On 11/12/2018 4:36 PM, Stephan Witt wrote:
>>> Am 12.11.2018 um 14:03 schrieb Stephen Buonopane :
> On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
>
> On 12-Nov-18 3:38 PM, Kornel Benko wrote:
>> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel 
>> :
>>> On 11/11/2018 19:14, Paul A. Rubin wrote:
 On 11/10/18 9:45 PM, Baris Erkus wrote:
> 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
>
>
 The image in your PDF file is a bitmap (PNG), so I don't hold out much
 hope for being able to zoom it without loss of fidelity.
>>> Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
>>> it and never got any pixels to see. At least it must be an extremely
>>> high resolution bitmap then.
>>>
>>> Daniel
>>>
>> Because PNG format is bitmap?
>>  PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
>>
>>  Kornel
>>
> The external graphics is in PDF, which is attached to the original
> e-mail; it was generated in Tikz, so it is a vector graphics. No
> question about it.  When inserted into LyX, maybe LyX creates a
> temporary bitmap or PNG file to show to the user, I am not sure.
>
> It should not be a big thing to show a higher resolution graphics or to
> let the user decide for possible performance issues. One day I will be
> doing all these small modification by myself, but when that I do not
> know... :-)
>
> Baris
 Yes LyX creates a PNG file for the on-screen preview within LyX (It also 
 does this for the math preview)
 If you dig into the LyX temp directory you will find all of the PNG files.

 I recall that an older version of LyX (on Mac) did not use PNG for 
 on-screen previews, in which case it may be possible to revert to the 
 older behavior even in 2.3.X?
>>> There are fundamental differences between the handling of SVG and PDF files 
>>> in LyX.
>>>
>>> LyX is using Qt plugins to render the images on screen.
>>>
>>> For PDF files one has to convert them to temporary bitmap files because 
>>> there is no plugin to render them directly. (Perhaps this is not true 
>>> anymore.) For SVG files there is a plugin. But this one is limited in 
>>> functionality. There was a decision to not use it for on-screen display 
>>> because of the complaints regarding missing details.
>>>
>>> The problem with the temporary images is the fixed resolution of the 
>>> generated images. The used cache is not invalidated in case of higher 
>>> preview zoom levels. Furthermore you can have different resolutions at 
>>> runtime too. In case of a machine with multiple monitors with different 
>>> physical resolutions you get different values for moving the LyX window 
>>> around.
>>>
>>> Stephan
>> This makes sense. Do you think it is reasonable that I put this as a
>> wish to the tracker?
> I think it’s already there… but couldn’t find it ATM.
>
> Stephan

I opened a ticket as a request...

https://www.lyx.org/trac/ticket/11379





Re: PDF graphics is blurred in LyX when scaled

2018-11-14 Thread Stephan Witt
Am 12.11.2018 um 18:53 schrieb Baris Erkus :
> 
> On 11/12/2018 4:36 PM, Stephan Witt wrote:
>> Am 12.11.2018 um 14:03 schrieb Stephen Buonopane :
 On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
 
 On 12-Nov-18 3:38 PM, Kornel Benko wrote:
> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel 
> :
>> On 11/11/2018 19:14, Paul A. Rubin wrote:
>>> On 11/10/18 9:45 PM, Baris Erkus wrote:
 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
 
 
>>> The image in your PDF file is a bitmap (PNG), so I don't hold out much
>>> hope for being able to zoom it without loss of fidelity.
>> Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
>> it and never got any pixels to see. At least it must be an extremely
>> high resolution bitmap then.
>> 
>> Daniel
>> 
> Because PNG format is bitmap?
>   PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
> 
>   Kornel
> 
 The external graphics is in PDF, which is attached to the original
 e-mail; it was generated in Tikz, so it is a vector graphics. No
 question about it.  When inserted into LyX, maybe LyX creates a
 temporary bitmap or PNG file to show to the user, I am not sure.
 
 It should not be a big thing to show a higher resolution graphics or to
 let the user decide for possible performance issues. One day I will be
 doing all these small modification by myself, but when that I do not
 know... :-)
 
 Baris
>>> 
>>> Yes LyX creates a PNG file for the on-screen preview within LyX (It also 
>>> does this for the math preview)
>>> If you dig into the LyX temp directory you will find all of the PNG files.
>>> 
>>> I recall that an older version of LyX (on Mac) did not use PNG for 
>>> on-screen previews, in which case it may be possible to revert to the older 
>>> behavior even in 2.3.X?
>> There are fundamental differences between the handling of SVG and PDF files 
>> in LyX.
>> 
>> LyX is using Qt plugins to render the images on screen.
>> 
>> For PDF files one has to convert them to temporary bitmap files because 
>> there is no plugin to render them directly. (Perhaps this is not true 
>> anymore.) For SVG files there is a plugin. But this one is limited in 
>> functionality. There was a decision to not use it for on-screen display 
>> because of the complaints regarding missing details.
>> 
>> The problem with the temporary images is the fixed resolution of the 
>> generated images. The used cache is not invalidated in case of higher 
>> preview zoom levels. Furthermore you can have different resolutions at 
>> runtime too. In case of a machine with multiple monitors with different 
>> physical resolutions you get different values for moving the LyX window 
>> around.
>> 
>> Stephan
> 
> This makes sense. Do you think it is reasonable that I put this as a 
> wish to the tracker?

I think it’s already there… but couldn’t find it ATM.

Stephan

Re: PDF graphics is blurred in LyX when scaled

2018-11-13 Thread Dr Eberhard Lisse
Maybe rsvg-convert works better.

I use the SVGs driectly and LyX has found the librsvg package I
installed via Homebrew (Mac).

greetings, el

On 12/11/2018 14:47, Bernt Lie wrote:
> I think that the problem here is that even when the imported graphics
> is *.svg file or a *.pdf file generate from a *.svg file (e.g., using
> Inkscape) -- and hence definitely is vector graphics, the preview in
> LyX often looks blurred when the LyX preview is scaled up to be
> visible on high resolution screens.
>
> As an example, the following drawing has been made in Inkscape as
> purely vector graphics drawing (*.svg, saved as *.pdf at 300 dpi).
> When scaling it to 200% in LyX, it starts to look muddled ?  LaTeX
> math which is produced as vector graphics starts to look unreadable on
> screen:
>
> Maybe this helps if I save the pdf file at a higher resolution?  I.e.,
> maybe Inkscape converts the drawing to bitmapped PDF?
>
> I would have loved to import the file as a *.svg file, but the LyX
> previewer and PDF generator sometimes messes up the arrows :-( .
>
> -B


Re: PDF graphics is blurred in LyX when scaled

2018-11-13 Thread Dr Eberhard Lisse
Right-CLick on the image

el

On 12/11/2018 08:13, Baris Erkus wrote:
> On 12-Nov-18 1:17 AM, Dr Eberhard Lisse wrote:
>> Remember, it's not What you See is What you Get, but What you Get is
>> What You Deserve :-)-O
>>
>> The display in LyX is different than the "display" in LaTeX and usually
>> good enough to work with.  There is an Edit function which if not
>> already done can be tied to something to Edit/View the sucker :-)-O
>>
>> el
>>
> Well, it is -most of the the time- OK to have low-quality pictures. When 
> writing the text, sometimes, I would like to look at the graphics/plots 
> and it would be convenient to see a more clear image.
> 
> Could you please elaborate on the "Edit function"?
> 
> Baris
> 



Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Baris Erkus
On 11/12/2018 4:03 PM, Stephen Buonopane wrote:
>
>> On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
>>
>> On 12-Nov-18 3:38 PM, Kornel Benko wrote:
>>> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :
 On 11/11/2018 19:14, Paul A. Rubin wrote:
> On 11/10/18 9:45 PM, Baris Erkus wrote:
>> 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
>>
>>
> The image in your PDF file is a bitmap (PNG), so I don't hold out much
> hope for being able to zoom it without loss of fidelity.
 Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
 it and never got any pixels to see. At least it must be an extremely
 high resolution bitmap then.

 Daniel

>>> Because PNG format is bitmap?
>>> PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
>>>
>>> Kornel
>>>
>> The external graphics is in PDF, which is attached to the original
>> e-mail; it was generated in Tikz, so it is a vector graphics. No
>> question about it.  When inserted into LyX, maybe LyX creates a
>> temporary bitmap or PNG file to show to the user, I am not sure.
>>
>> It should not be a big thing to show a higher resolution graphics or to
>> let the user decide for possible performance issues. One day I will be
>> doing all these small modification by myself, but when that I do not
>> know... :-)
>>
>> Baris
>
> Yes LyX creates a PNG file for the on-screen preview within LyX (It also does 
> this for the math preview)
> If you dig into the LyX temp directory you will find all of the PNG files.
>
> I recall that an older version of LyX (on Mac) did not use PNG for on-screen 
> previews, in which case it may be possible to revert to the older behavior 
> even in 2.3.X?
>
>
>
>

In fact, I found the temporary folder that collects the PNGs: 
C:\Users\**UserName**\AppData\Roaming\**LyXFolder**\cache   (Windows 10, 
64 bit, LyX, 2.3.1-1)

I erased the PNGs and re-opened the LyX file. I generated the PNG right 
in front of my eyes. But it is the same PNG with low quality. :-(

Maybe, there are some other issues with showing either the PDF or a 
higher resolution PNG as Stephan Witt mentioned.

Baris





Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Baris Erkus
On 11/12/2018 4:36 PM, Stephan Witt wrote:
> Am 12.11.2018 um 14:03 schrieb Stephen Buonopane :
>>> On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
>>>
>>> On 12-Nov-18 3:38 PM, Kornel Benko wrote:
 Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :
> On 11/11/2018 19:14, Paul A. Rubin wrote:
>> On 11/10/18 9:45 PM, Baris Erkus wrote:
>>> 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
>>>
>>>
>> The image in your PDF file is a bitmap (PNG), so I don't hold out much
>> hope for being able to zoom it without loss of fidelity.
> Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
> it and never got any pixels to see. At least it must be an extremely
> high resolution bitmap then.
>
> Daniel
>
 Because PNG format is bitmap?
PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced

Kornel

>>> The external graphics is in PDF, which is attached to the original
>>> e-mail; it was generated in Tikz, so it is a vector graphics. No
>>> question about it.  When inserted into LyX, maybe LyX creates a
>>> temporary bitmap or PNG file to show to the user, I am not sure.
>>>
>>> It should not be a big thing to show a higher resolution graphics or to
>>> let the user decide for possible performance issues. One day I will be
>>> doing all these small modification by myself, but when that I do not
>>> know... :-)
>>>
>>> Baris
>>
>> Yes LyX creates a PNG file for the on-screen preview within LyX (It also 
>> does this for the math preview)
>> If you dig into the LyX temp directory you will find all of the PNG files.
>>
>> I recall that an older version of LyX (on Mac) did not use PNG for on-screen 
>> previews, in which case it may be possible to revert to the older behavior 
>> even in 2.3.X?
> There are fundamental differences between the handling of SVG and PDF files 
> in LyX.
>
> LyX is using Qt plugins to render the images on screen.
>
> For PDF files one has to convert them to temporary bitmap files because there 
> is no plugin to render them directly. (Perhaps this is not true anymore.) For 
> SVG files there is a plugin. But this one is limited in functionality. There 
> was a decision to not use it for on-screen display because of the complaints 
> regarding missing details.
>
> The problem with the temporary images is the fixed resolution of the 
> generated images. The used cache is not invalidated in case of higher preview 
> zoom levels. Furthermore you can have different resolutions at runtime too. 
> In case of a machine with multiple monitors with different physical 
> resolutions you get different values for moving the LyX window around.
>
> Stephan

This makes sense. Do you think it is reasonable that I put this as a 
wish to the tracker?


Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Daniel

On 12/11/2018 16:35, Paul A. Rubin wrote:

On 11/12/18 7:52 AM, Baris Erkus wrote:


The external graphics is in PDF, which is attached to the original
e-mail; it was generated in Tikz, so it is a vector graphics. No
question about it.  When inserted into LyX, maybe LyX creates a
temporary bitmap or PNG file to show to the user, I am not sure.


I opened the PDF file in both ImageMagick and IrfanView and inspected 
the image properties. IrfanView reports it as 96x96 DPI, 474 x 234 
pixels. ImageMagick reports it as PNG format with the same resolution 
and geometry. Note that this is entirely outside LyX.


Maybe these programs convert PDF to a bitmap? At least for ImageMagick 
this seems highly likely. Try to open the PDF in a proper PDF viewer and 
zoom in. It is definitely not 474 x 234 pixels.


Daniel



Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Paul A. Rubin

On 11/12/18 7:52 AM, Baris Erkus wrote:


The external graphics is in PDF, which is attached to the original
e-mail; it was generated in Tikz, so it is a vector graphics. No
question about it.  When inserted into LyX, maybe LyX creates a
temporary bitmap or PNG file to show to the user, I am not sure.


I opened the PDF file in both ImageMagick and IrfanView and inspected 
the image properties. IrfanView reports it as 96x96 DPI, 474 x 234 
pixels. ImageMagick reports it as PNG format with the same resolution 
and geometry. Note that this is entirely outside LyX.


I agree that TiKZ generates vector graphics, but apparently the image 
was converted to PNG before embedding it in the PDF file. In any case, 
as I mentioned previously, I see the same blurring when zooming on 
vector graphics (e.g., SVG images). So the first step would be to figure 
out how to get LyX to zoom vector graphics without blurring. After that, 
you might need to modify your work flow so as to embed EPS or SVG 
graphics, rather than PDFs, in your LyX documents.


Paul



Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Paul A. Rubin

On 11/12/18 7:52 AM, Baris Erkus wrote:


The external graphics is in PDF, which is attached to the original
e-mail; it was generated in Tikz, so it is a vector graphics. No
question about it.  When inserted into LyX, maybe LyX creates a
temporary bitmap or PNG file to show to the user, I am not sure.


I opened the PDF file in both ImageMagick and IrfanView and inspected 
the image properties. IrfanView reports it as 96x96 DPI, 474 x 234 
pixels, 24 bit color depth. ImageMagick reports it as


Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Daniel

On 12/11/2018 13:52, Baris Erkus wrote:

On 12-Nov-18 3:38 PM, Kornel Benko wrote:

Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :

On 11/11/2018 19:14, Paul A. Rubin wrote:

On 11/10/18 9:45 PM, Baris Erkus wrote:

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



The image in your PDF file is a bitmap (PNG), so I don't hold out much
hope for being able to zoom it without loss of fidelity.

Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
it and never got any pixels to see. At least it must be an extremely
high resolution bitmap then.

Daniel


Because PNG format is bitmap?
PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced

Kornel


The external graphics is in PDF, which is attached to the original
e-mail; it was generated in Tikz, so it is a vector graphics. No
question about it.  When inserted into LyX, maybe LyX creates a
temporary bitmap or PNG file to show to the user, I am not sure.

It should not be a big thing to show a higher resolution graphics or to
let the user decide for possible performance issues. One day I will be
doing all these small modification by myself, but when that I do not
know... :-)


I think the converters for graphics should be in

Preferences > File Handling > Converters

And the converters for the particular task of PDF to bitmap conversion 
seem to be


PDF (graphics) -> EPS

and

EPS -> PNG

However, I tried to make some changes but LyX did not respond to any of 
them except for a complete removal of the converter. I believe you need 
to at least restart LyX to see the changes but nothing worked for me 
even if I filled in complete gibberish. (Also, be aware, it seems 
removing a converter cannot be undone easily. You can reconfigure which 
might overwrite some other changes you made in Preferences. And even if 
you do so, LyX does not save the converters, so you have to go to the 
converters make a change to one of them, like adding a letter, click on 
modify, removing the letter, click again on modify and then Save ... 
quite a pain.)


Daniel




Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Stephan Witt
Am 12.11.2018 um 14:03 schrieb Stephen Buonopane :
> 
>> On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
>> 
>> On 12-Nov-18 3:38 PM, Kornel Benko wrote:
>>> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :
 On 11/11/2018 19:14, Paul A. Rubin wrote:
> On 11/10/18 9:45 PM, Baris Erkus wrote:
>> 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
>> 
>> 
> The image in your PDF file is a bitmap (PNG), so I don't hold out much
> hope for being able to zoom it without loss of fidelity.
 Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
 it and never got any pixels to see. At least it must be an extremely
 high resolution bitmap then.
 
 Daniel
 
>>> Because PNG format is bitmap?
>>> PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
>>> 
>>> Kornel
>>> 
>> The external graphics is in PDF, which is attached to the original 
>> e-mail; it was generated in Tikz, so it is a vector graphics. No 
>> question about it.  When inserted into LyX, maybe LyX creates a 
>> temporary bitmap or PNG file to show to the user, I am not sure.
>> 
>> It should not be a big thing to show a higher resolution graphics or to 
>> let the user decide for possible performance issues. One day I will be 
>> doing all these small modification by myself, but when that I do not 
>> know... :-)
>> 
>> Baris
> 
> 
> Yes LyX creates a PNG file for the on-screen preview within LyX (It also does 
> this for the math preview)
> If you dig into the LyX temp directory you will find all of the PNG files.
> 
> I recall that an older version of LyX (on Mac) did not use PNG for on-screen 
> previews, in which case it may be possible to revert to the older behavior 
> even in 2.3.X?

There are fundamental differences between the handling of SVG and PDF files in 
LyX.

LyX is using Qt plugins to render the images on screen.

For PDF files one has to convert them to temporary bitmap files because there 
is no plugin to render them directly. (Perhaps this is not true anymore.) For 
SVG files there is a plugin. But this one is limited in functionality. There 
was a decision to not use it for on-screen display because of the complaints 
regarding missing details.

The problem with the temporary images is the fixed resolution of the generated 
images. The used cache is not invalidated in case of higher preview zoom 
levels. Furthermore you can have different resolutions at runtime too. In case 
of a machine with multiple monitors with different physical resolutions you get 
different values for moving the LyX window around.

Stephan

Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Stephen Buonopane



> On Nov 12, 2018, at 7:52 AM, Baris Erkus  wrote:
> 
> On 12-Nov-18 3:38 PM, Kornel Benko wrote:
>> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :
>>> On 11/11/2018 19:14, Paul A. Rubin wrote:
 On 11/10/18 9:45 PM, Baris Erkus wrote:
> 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
> 
> 
 The image in your PDF file is a bitmap (PNG), so I don't hold out much
 hope for being able to zoom it without loss of fidelity.
>>> Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
>>> it and never got any pixels to see. At least it must be an extremely
>>> high resolution bitmap then.
>>> 
>>> Daniel
>>> 
>> Because PNG format is bitmap?
>>  PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
>> 
>>  Kornel
>> 
> The external graphics is in PDF, which is attached to the original 
> e-mail; it was generated in Tikz, so it is a vector graphics. No 
> question about it.  When inserted into LyX, maybe LyX creates a 
> temporary bitmap or PNG file to show to the user, I am not sure.
> 
> It should not be a big thing to show a higher resolution graphics or to 
> let the user decide for possible performance issues. One day I will be 
> doing all these small modification by myself, but when that I do not 
> know... :-)
> 
> Baris


Yes LyX creates a PNG file for the on-screen preview within LyX (It also does 
this for the math preview)
If you dig into the LyX temp directory you will find all of the PNG files.

I recall that an older version of LyX (on Mac) did not use PNG for on-screen 
previews, in which case it may be possible to revert to the older behavior even 
in 2.3.X?






Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Daniel

On 12/11/2018 13:38, Kornel Benko wrote:

Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :

On 11/11/2018 19:14, Paul A. Rubin wrote:

On 11/10/18 9:45 PM, Baris Erkus wrote:


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



The image in your PDF file is a bitmap (PNG), so I don't hold out much
hope for being able to zoom it without loss of fidelity.


Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
it and never got any pixels to see. At least it must be an extremely
high resolution bitmap then.

Daniel



Because PNG format is bitmap?
PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced

Kornel



I read you as saying that the image in the PDF is a 652 pixel x 668 
pixel PNG. But that can't be true. The resolution must be far greater.


Daniel



Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Baris Erkus
On 12-Nov-18 3:38 PM, Kornel Benko wrote:
> Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :
>> On 11/11/2018 19:14, Paul A. Rubin wrote:
>>> On 11/10/18 9:45 PM, Baris Erkus wrote:
 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


>>> The image in your PDF file is a bitmap (PNG), so I don't hold out much
>>> hope for being able to zoom it without loss of fidelity.
>> Why do you think the graphic in the PDF is a bitmap? I have zoomed in on
>> it and never got any pixels to see. At least it must be an extremely
>> high resolution bitmap then.
>>
>> Daniel
>>
> Because PNG format is bitmap?
>   PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced
>
>   Kornel
>
The external graphics is in PDF, which is attached to the original 
e-mail; it was generated in Tikz, so it is a vector graphics. No 
question about it.  When inserted into LyX, maybe LyX creates a 
temporary bitmap or PNG file to show to the user, I am not sure.

It should not be a big thing to show a higher resolution graphics or to 
let the user decide for possible performance issues. One day I will be 
doing all these small modification by myself, but when that I do not 
know... :-)

Baris


RE: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Bernt Lie
I think that the problem here is that even when the imported graphics is *.svg 
file or a *.pdf file generate from a *.svg file (e.g., using Inkscape) -- and 
hence definitely is vector graphics, the preview in LyX often looks blurred 
when the LyX preview is scaled up to be visible on high resolution screens.



As an example, the following drawing has been made in Inkscape as purely vector 
graphics drawing (*.svg, saved as *.pdf at 300 dpi). When scaling it to 200% in 
LyX, it starts to look muddled – LaTeX math which is produced as vector 
graphics starts to look unreadable on screen:



[cid:image003.jpg@01D47A8E.3F65AE00]



Maybe this helps if I save the pdf file at a higher resolution? I.e., maybe 
Inkscape converts the drawing to bitmapped PDF?



I would have loved to import the file as a *.svg file, but the LyX previewer 
and PDF generator sometimes messes up the arrows :-( .



-B



-Original Message-
From: lyx-users@lists.lyx.org  On Behalf Of Kornel 
Benko
Sent: mandag 12. november 2018 13.39
To: lyx-users@lists.lyx.org
Subject: Re: PDF graphics is blurred in LyX when scaled



Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel 
mailto:xraco...@gmx.de>>:

> On 11/11/2018 19:14, Paul A. Rubin wrote:

> > On 11/10/18 9:45 PM, Baris Erkus wrote:

> >>

> >> 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

> >>

> >>

> > The image in your PDF file is a bitmap (PNG), so I don't hold out

> > much hope for being able to zoom it without loss of fidelity.

>

> Why do you think the graphic in the PDF is a bitmap? I have zoomed in

> on it and never got any pixels to see. At least it must be an

> extremely high resolution bitmap then.

>

> Daniel

>



Because PNG format is bitmap?

PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced



Kornel




Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Kornel Benko
Am Montag, 12. November 2018 13:21:58 CET schrieb Daniel :
> On 11/11/2018 19:14, Paul A. Rubin wrote:
> > On 11/10/18 9:45 PM, Baris Erkus wrote:
> >>
> >> 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
> >>
> >>
> > The image in your PDF file is a bitmap (PNG), so I don't hold out much 
> > hope for being able to zoom it without loss of fidelity.
> 
> Why do you think the graphic in the PDF is a bitmap? I have zoomed in on 
> it and never got any pixels to see. At least it must be an extremely 
> high resolution bitmap then.
> 
> Daniel
> 

Because PNG format is bitmap?
PNG image data, 652 x 668, 8-bit/color RGB, non-interlaced

Kornel



signature.asc
Description: This is a digitally signed message part.


Re: PDF graphics is blurred in LyX when scaled

2018-11-12 Thread Daniel

On 11/11/2018 19:14, Paul A. Rubin wrote:

On 11/10/18 9:45 PM, Baris Erkus wrote:


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


The image in your PDF file is a bitmap (PNG), so I don't hold out much 
hope for being able to zoom it without loss of fidelity.


Why do you think the graphic in the PDF is a bitmap? I have zoomed in on 
it and never got any pixels to see. At least it must be an extremely 
high resolution bitmap then.


Daniel



Re: PDF graphics is blurred in LyX when scaled

2018-11-11 Thread Baris Erkus
On 12-Nov-18 1:17 AM, Dr Eberhard Lisse wrote:
> Remember, it's not What you See is What you Get, but What you Get is
> What You Deserve :-)-O
>
> The display in LyX is different than the "display" in LaTeX and usually
> good enough to work with.  There is an Edit function which if not
> already done can be tied to something to Edit/View the sucker :-)-O
>
> el
>
Well, it is -most of the the time- OK to have low-quality pictures. When 
writing the text, sometimes, I would like to look at the graphics/plots 
and it would be convenient to see a more clear image.

Could you please elaborate on the "Edit function"?

Baris


Re: PDF graphics is blurred in LyX when scaled

2018-11-11 Thread Dr Eberhard Lisse
Remember, it's not What you See is What you Get, but What you Get is
What You Deserve :-)-O

The display in LyX is different than the "display" in LaTeX and usually
good enough to work with.  There is an Edit function which if not
already done can be tied to something to Edit/View the sucker :-)-O

el

On 2018-11-11 20:14 , Paul A. Rubin wrote:
> On 11/10/18 9:45 PM, Baris Erkus wrote:
>>
>> 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
>>
>>
> The image in your PDF file is a bitmap (PNG), so I don't hold out much
> hope for being able to zoom it without loss of fidelity.
> 
> That said, I've observed similar blurring when zooming EPS and SVG
> graphics. Since those are vector images that LyX converts to bitmaps (I
> believe PNG) for display, I think it should be possible to copy the EPS
> or SVG file with adjusted dimensions, then convert to PNG without
> blurring ... maybe. There might also be a way to add a command argument
> to "convert" to do this without copying the source file. I'm no expert
> on graphics, though, so I'm not sure.


Re: PDF graphics is blurred in LyX when scaled

2018-11-11 Thread Bernt Lie
The same happens in Windows.
B

Get Outlook for Android<https://aka.ms/ghei36>


From: lyx-users@lists.lyx.org  on behalf of Murat 
Yildizoglu 
Sent: Sunday, November 11, 2018 7:20:57 PM
To: lyx-users@lists.lyx.org
Subject: Re: PDF graphics is blurred in LyX when scaled

In my case the graphics were pure PDFs without any bitmap in. But I have the 
impression that the blur has appeared when I have changed the size shown on the 
screen. I am not sure that LyX generates a new bitmap version for the screen 
when we change the size on the Latex and Lyx options panel.

Le 11 nov. 2018 à 08:29, Murat Yildizoglu 
mailto:myi...@gmail.com>> a écrit :

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

Murat Yildizoglu
Le 11 nov. 2018 à 03:45 +0100, Baris Erkus 
mailto:bariser...@hotmail.com>>, 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




--
Prof. Murat Yildizoglu

Université de Bordeaux
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

murat.yildizo...@u-bordeaux.fr<mailto:murat.yildizo...@u-bordeaux.fr>

http://yildizoglu.fr

http://www.twitter.com/yildizoglu





Re: PDF graphics is blurred in LyX when scaled

2018-11-11 Thread Murat Yildizoglu
In my case the graphics were pure PDFs without any bitmap in. But I have the 
impression that the blur has appeared when I have changed the size shown on the 
screen. I am not sure that LyX generates a new bitmap version for the screen 
when we change the size on the Latex and Lyx options panel.

> Le 11 nov. 2018 à 08:29, Murat Yildizoglu  a écrit :
> 
> I have also observed this in the last version under Osx.
> 
> Murat Yildizoglu
> Le 11 nov. 2018 à 03:45 +0100, Baris Erkus , 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
>> 
>> 
>> 
>> 
>> 

--
Prof. Murat Yildizoglu

Université de Bordeaux 
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

murat.yildizo...@u-bordeaux.fr

http://yildizoglu.fr

http://www.twitter.com/yildizoglu





Re: PDF graphics is blurred in LyX when scaled

2018-11-11 Thread Paul A. Rubin

On 11/10/18 9:45 PM, Baris Erkus wrote:


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


The image in your PDF file is a bitmap (PNG), so I don't hold out much 
hope for being able to zoom it without loss of fidelity.


That said, I've observed similar blurring when zooming EPS and SVG 
graphics. Since those are vector images that LyX converts to bitmaps (I 
believe PNG) for display, I think it should be possible to copy the EPS 
or SVG file with adjusted dimensions, then convert to PNG without 
blurring ... maybe. There might also be a way to add a command argument 
to "convert" to do this without copying the source file. I'm no expert 
on graphics, though, so I'm not sure.


Re: PDF graphics is blurred in LyX when scaled

2018-11-10 Thread Murat Yildizoglu
I have also observed this in the last version under Osx.

Murat Yildizoglu
Le 11 nov. 2018 à 03:45 +0100, Baris Erkus , 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
>


PDF graphics is blurred in LyX when scaled

2018-11-10 Thread Baris Erkus
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


[cid:part1.31D4127B.B991E738@hotmail.com]


fig02.pdf
Description: fig02.pdf


paper.lyx
Description: paper.lyx