Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Thumbnail image for each entry #79

Merged
merged 6 commits into from Feb 10, 2017
Merged

Conversation

pmartin
Copy link
Owner

@pmartin pmartin commented Feb 9, 2017

With this PR :

  • Download the preview image for each entry (when wallabag has one)
  • Generate a local thumbnail (small, 16 colors, PNG) so it can be displayed as quick as possible
  • In the entries list, display the thumbnail of each entry (when there is one)
  • When "deleting all local data", the images are deleted too

Current limitations :

  • Images are downloaded synchronously, one at a time, when syncing from server => in the future, downloading several images in parallel should help speed things up (like it did for EPUB files)
  • Only supports PNG et JPEG/JPG images ; and detection is based on the extension in the URL :-(

After a few hours of work and with these limitations, it's not perfect, but it seems to be working, so I'm commiting (and I'll probably merge soon) if someone wants to test (and I'm already using this on my own TL3 ^^ ) - fix #20 (even if some changes / enhancements might come in the future, on other PRs)

Oh and here's a quick screenshot (on a page where all entries have a thumbnail) :
thumbnails-on-entries-01

@pmartin pmartin merged commit 8dcd7ae into master Feb 10, 2017
@pmartin pmartin deleted the thumbnail-image-for-each-entry branch February 10, 2017 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display an image for each entry
1 participant