Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is it possible to style the preview thumbnail? #88

Open
frankrolf opened this issue Jul 1, 2019 · 4 comments
Open

Is it possible to style the preview thumbnail? #88

frankrolf opened this issue Jul 1, 2019 · 4 comments

Comments

@frankrolf
Copy link

Thank you very much for the excellent qlmarkdown – I especially appreciate the ability to customize the preview via editing the styles.css file.

One thing I’ve always been wondering about – is the icon-size thumbnail deliberately cut to use that particular zoom ratio?
Screen Shot 2019-07-01 at 19 31 52

This illustrates thumbnails of two .md files (as created by qlmarkdown) and the thumbnail of a normal text file. What would I need to do to make the quicklook file icon scale the same way as the text file does (i.e. just show the document structure)?
Thanks!

@toland
Copy link
Owner

toland commented Jul 10, 2019

I haven't looked at the code for a quite a while, so take this with a grain of salt 😄

This wasn't a conscious decision. The OS renders the icon preview based on the final rendered output. So, what you are seeing is a snapshot of the rendered HTML. I am honestly not sure if we can control the rendering of the preview in the icon. My guess is that we cannot.

@relikd
Copy link

relikd commented Jan 16, 2020

Actually, you have total control over the thumbnail rendering.
The code for this is in GenerateThumbnailForURL.m
And can be tested with qlmanage -t testFile.md

thumbnail

(funny, this isn't even the top of the document)

@relikd
Copy link

relikd commented Jan 16, 2020

screen

@frankrolf
Copy link
Author

Well isn’t this just fantastic! Thank you very much!!!!
😊

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants