Make reports use less disk space
Reports with images can be pretty big, especially when comparing 100+ variables. A comparison of some GOES-R level 2 outputs, 104 variables total, is about 73MiB.
The bulk of the space is going to images. Here's a typical single variable:
These are big enough to be a nuisance to hand around. If we could shrink them, it would be helpful.
Possible techniques to make things smaller:
- Use the option to not generate images if a given variable passes the similarity test.
small.*images; use the originals directly and rescale in browser. It will use more browser memory, CPU, and bandwidth., but I don't think it's significant. This might save about 30% of the space.
Higher compression levels. perhapsProbably not; Going from compression 6 to 9 saves about 2%, turning on optimization saves nothing (indeed, it grows a bit!).
compress_level=9, optimize=True? (default is
Comparison of compression levels:
|Size (B)||Time (s)||compress_level||optimize|