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





Skim 1.4.37 resets to first page after updating PDF (LyX 2.3.1, Mac OS 10.11.6)

2018-11-14 Thread Daisuke Koya
Hello Macintosh LyX users,

After updating Skim to Version 1.4.37, when I update a PDF in LyX 2.3.1, the 
document resets to the first page. I’m using Mac OS 10.11.6.

This is annoying to say the least, as I have to repeatedly scroll to where 
corrections were made.

I don’t know what I’m doing, but I did try to remedy the problem in my own way, 
which was to install MacTeX 2018, but this made no difference.

I believe I set up viewing files in Skim correctly, as it worked like a champ 
until the application was updated.

I would be very pleased if someone could share their knowledge on how to fix 
the problem. Thank you very much in advance.

Best regards,

Daisuke

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