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

best image compression/format #10

Open
sebsteinig opened this issue Apr 21, 2023 · 0 comments
Open

best image compression/format #10

sebsteinig opened this issue Apr 21, 2023 · 0 comments
Labels
question Further information is requested

Comments

@sebsteinig
Copy link
Collaborator

Given that the future weather data will be at much higher resolution than our BRIDGE data, I think it would be worth to think about the best image format for our data conversion. I just used PNG so far because it was the easiest solution for me.

One alternative I saw is WebP. It provides both lossless and lossy compression options and resulting images are around 25% smaller than PNG/JPEG (https://developers.google.com/speed/webp). It seems the Python library Pillow that we currently use can also directly output to WebP (https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html) and the JS library can read WebP metadata (https://www.npmjs.com/package/exifreader?activeTab=readme). So I guess this could be a good alternative to PNG with relatively easy implementation?

We could also test different levels of lossy compression with WebP to find a good tradeoff between file size and quality of frontend graphics.

You also mentioned AI image compression? Would this be a possibility as well? Would this be a topic either of you would be interested to explore?

@sebsteinig sebsteinig added the question Further information is requested label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant