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

Support remote images #60

Merged
merged 3 commits into from
May 18, 2023
Merged

Support remote images #60

merged 3 commits into from
May 18, 2023

Conversation

jonmmease
Copy link
Collaborator

Closes #59

Implements a custom usvg image string resolver that uses the reqwest crate to download remote image files to temporary files so that usvg will pick them up properly.

cc @binste

@binste
Copy link

binste commented May 18, 2023

As always, your speed is impressive! Great solution to the problem and glad to know that I can continue with implementing basemaps based on remote tile images knowing that vl-convert can now support this approach.

@jonmmease
Copy link
Collaborator Author

glad to know that I can continue with implementing basemaps based on remote tile images...

Interested to hear more about this at some point!

@jonmmease jonmmease merged commit 2cd8985 into main May 18, 2023
10 checks passed
@jonmmease jonmmease deleted the jonmmease/remote_images branch May 18, 2023 16:39
@binste
Copy link

binste commented May 18, 2023

Still early stages but I just published a first draft at https://github.com/binste/altair_basemap. The repo might be moved to the altair-viz org or the feature directly implemented in Vega-Lite, see vega/vega-lite#8885, not sure yet. You can see some examples in this notebook.

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.

Remote images are lost when saving an Altair chart
2 participants