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

Compress GXP files #504

Closed
bpatrik opened this issue Jun 24, 2022 · 2 comments
Closed

Compress GXP files #504

bpatrik opened this issue Jun 24, 2022 · 2 comments
Assignees
Milestone

Comments

@bpatrik
Copy link
Owner

bpatrik commented Jun 24, 2022

I checked my GPX files that I logged with my Garmin watch and it seems to contain too much information. GPS entry logs are every 2 meter, every 2-3 sec. It also contains altitude and hearth rate. The app can only use the lat and lon part of the data, so no need to send all of them to the client side. Also data can be more sparse.

Lest implement a lossy gpx compressor: It would remove all not used data and make the entry more sparse.

@bpatrik bpatrik added this to the v1.9.5 milestone Jun 24, 2022
@bpatrik bpatrik self-assigned this Jun 24, 2022
bpatrik added a commit that referenced this issue Jun 24, 2022
Its a lossy compression that can be finetuned in the config.

#504
@bpatrik
Copy link
Owner Author

bpatrik commented Jun 24, 2022

Made some tweaks and tested on my walks, hikes that I recorded with my watch. With this lossy compression a 6x improvement can be achieved.

@bpatrik
Copy link
Owner Author

bpatrik commented Jun 25, 2022

Running the compression on my full gallery (265 gpx files)
Downloaded file size got reduced from 67.8 to 30.8MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant