Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Figure out how to handle previews

See original GitHub issue


  • Store in the database as base64-encoded binary blob. Might lead to significantly larger databases though.
  • Store a file path in the database. But leading where? This would require additional user input.
  • Generate previews on the fly through /rgb or /singleband with a low zoom level, or add another API endpoint that reads a whole dataset (as opposed to an XYZ tile).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

dionhaefnercommented, Oct 2, 2018

Should be very easy to implement, too. Passing bounds to the raster driver is already optional and defaults to reading the entire file. So we’d just have to register another flask route for the preview, and do some adjustments in the handler to make xyz optional.

mrpgraaecommented, Oct 2, 2018

It automatically uses the appropriate overview, and we compute overviews in optimize-rasters until we are below TILE_SIZE, so everything should work out of the box.

Sweet! 👌

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the Preview pane in the Finder on Mac - Apple Support
On your Mac, click the Finder icon in the Dock to open a Finder window. Select the folder or file. If you don't...
Read more >
Mastering SwiftUI previews - Swift with Majid
Preview is a simple SwiftUI view. You can apply different modifiers in previews to check how your view looks with various user settings....
Read more >
Types Of File Preview Errors And How To Handle Them
If you see this error message, download and open the file on your computer or phone to view it. Note: Previews will be...
Read more >
Using Previews to Try Out Processes - PixInsight
Here we offer you just a brief introduction so that you can figure out how a preview object can be used to essay...
Read more >
Manage preview features - Azure DevOps Services
Enable/disable or activate/deactivate features in preview at the user or organization level.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found