1. 18 Feb, 2020 1 commit
  2. 17 Feb, 2020 1 commit
  3. 16 Feb, 2020 3 commits
  4. 15 Feb, 2020 1 commit
  5. 14 Feb, 2020 3 commits
  6. 13 Feb, 2020 7 commits
  7. 12 Feb, 2020 1 commit
  8. 29 Jan, 2020 1 commit
  9. 27 Jan, 2020 2 commits
  10. 18 Jan, 2020 2 commits
  11. 05 Jan, 2020 2 commits
  12. 04 Jan, 2020 1 commit
  13. 25 Dec, 2019 1 commit
  14. 19 Dec, 2019 4 commits
  15. 18 Dec, 2019 10 commits
    • Florian Müllner's avatar
      thumbnailer: Dispose cairo context · 90b3400e
      Florian Müllner authored
      90b3400e
    • Florian Müllner's avatar
      thumbnailer: Add special image handling · d2698d37
      Florian Müllner authored
      Currently we use a generic approach for creating thumbnails which works
      well for web pages but can potentially have bad results for smaller
      images, as the web view adds a lot of blank space which also appears
      in the thumbnail.
      
      Address this by detecting image URLs, fetch the image's position and size,
      and use that to clip the created snapshot.
      
      !140
      d2698d37
    • Florian Müllner's avatar
      thumbnailer: Promisify snapshot creation · f1237d66
      Florian Müllner authored
      We are about to add more complexity there, using promises will help
      with keeping the code readable.
      
      !140
      f1237d66
    • Florian Müllner's avatar
      thumbnailer: Handle different image sizes · 0870f0a5
      Florian Müllner authored
      We currently assume that snapshots use the same ratio as the final
      previews. While that is correct at the moment, this is about to
      change for image URLs, where we want the snapshot to match the
      actual image.
      
      Prepare for this by taking the preview size as maximum sizes, and
      fit in the source surface as best as possible.
      
      !140
      0870f0a5
    • Florian Müllner's avatar
      thumbnailer: Limit time we try to load a page · 75d6470c
      Florian Müllner authored
      We don't want to allow a single URL to block all further preview generation
      indefinitely, so cancel loading after a minute.
      
      !139
      75d6470c
    • Florian Müllner's avatar
      thumbnailer: Handle load failure · a4494a85
      Florian Müllner authored
      We don't want to create blank thumbnails for pages that fail to load
      (because the network goes down, or the host is behind a VPN etc.).
      Simply bail out early in that case.
      
      !139
      a4494a85
    • Florian Müllner's avatar
      thumbnailer: Handle authentication requests · ac8e5e4b
      Florian Müllner authored
      If a URL requires authentication, we currently wait indefinitely
      as nothing provides the requested credential.
      
      Fix this by cancelling all authentication requests immediately.
      
      !139
      ac8e5e4b
    • Florian Müllner's avatar
      chatView: Only preview http* URLs · 9cd8e8f7
      Florian Müllner authored
      We don't know how to preview those, not to mention that there's a fair
      chance that a preview wouldn't be meaningful to begin with (for instance
      irc:// or file://)
      
      !139
      9cd8e8f7
    • Florian Müllner's avatar
      utils: Always include scheme in found URLs · 278b24cf
      Florian Müllner authored
      We already support a separate (display) name in order to linkify #channel
      names. Start using it for regular URLs as well, so we can make sure that
      the url property always includes the scheme.
      
      !139
      278b24cf
    • Daronion's avatar
      urlPreview: Load actual thumbnails · 711ffd3b
      Daronion authored
      We potentially want to load a lot of previews at a time. Depending on
      the web page this can be a quite expensive operation, so we only want
      to create one thumbnail at a time.
      
      To ensure that, delegate the loading and creation to a singleton that
      runs the previously added helper script on each URL one by one and cache
      the result.
      
      #58
      711ffd3b