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

feat: can compress image data before sending it to over the websocket #109

Merged

Conversation

maartenbreddels
Copy link
Collaborator

This is useful when the widget is being used over a non-local network. This can reduce the network traffic by a factor of 80 (for smooth, easy to compress images). Pure noise image (random pixels) will not compress well but will still see a factor of 7 reduction in size, due to using uint8 instead of float64.

Pull Request Template

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 35 lines in your changes missing coverage. Please review.

Project coverage is 44.44%. Comparing base (7b90b9d) to head (fa48411).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
bqplot_image_gl/serialize.py 22.22% 35 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
- Coverage   50.00%   44.44%   -5.56%     
==========================================
  Files           7        8       +1     
  Lines         140      189      +49     
==========================================
+ Hits           70       84      +14     
- Misses         70      105      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maartenbreddels maartenbreddels force-pushed the feat_compress_image_data branch 6 times, most recently from d5b2eeb to 148de2c Compare October 11, 2024 10:44
This is useful when the widget is being used over a non-local network.
This can reduce the network traffic by a factor of 80 (for smooth, easy
to compress images). Pure noise image (random pixels) will not compress
well but will still see a factor of 7 reduction in size,
due to using uint8 instead of float64.
@maartenbreddels maartenbreddels force-pushed the feat_compress_image_data branch from 148de2c to fa48411 Compare October 11, 2024 11:10
@maartenbreddels maartenbreddels merged commit 57c7230 into glue-viz:main Oct 15, 2024
12 of 14 checks passed
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.

1 participant