emonSD image compression

(Bruce) #1


I’ve recently noticed the xz offers much better compression for emonSD images. For those of us using linux, it would be nice to download a single emonSD.img.xz file (829 MB) instead of a single-file zip (1.2 GB).

I don’t know if windows users can open xz files. It’s basically just LZMA2, so I would expect so.


(Bill Thomson) #2

Another good example of Google is your friend.


Three popular Windows archive apps - WinRAR, WinZip and 7zip - can handle xz compressed files.

From a Google search

From the WinRAR page:

(Greebo) #3

There’s one big benefit of “zip” files… Everyone knows what to do with a .zip file.
You give someone a “.xz” file and their first reaction is going to be “What the?”

(Robert Wall) #4

True, but then

is a fair incentive to find out, unless you have a greased lightning BB service.

(Greebo) #5

How often are individuals downloading EmonSD images that the extra ~300MB is causing significant issues/delays?

One could equally suggest that we should use .rar (1993), or .7z (1999) or any number of other compression formats that have been around longer than .xz (2009), are more widely known and likewise offer better compression than .zip.

I’m just playing devils advocate here, I really don’t have a stake in this :slight_smile:. The difference of 300+ MB to me is about 5 extra minutes download time, but if OEM are paying for hosting bandwidth, maybe looking at the compression method of the image is worth their effort?

(Greebo) #6

While were talking about bandwidth and downloads of the image, has anyone from OEM thought about putting up a torrent tracker and creating a torrent file for the image? The rest of the community could assist in hosting the image - I’d certainly be happy to seed it.

(Robert Wall) #7

But it’s still 300 MB on my data quota that’s unnecessary.

(Bill Thomson) #8

Yep, one wouldn’t have to to that too many times to eat a sizable chunk out of a 10 GB quota.
Not to mention any other file transfers, etc…

(Greebo) #9

Heading slightly off-topic now… Surely that’s a mobile phone data plan??? Is anyone actually downloading an emonSD image using their mobile data plan? Flipping that around, how many people with home internet are on a 10GB monthly quota? Here in Australia, 100GB is the smallest, with many providers offering “Unlimited” as their standard offer for home Internet (ADSL or VDSL)

(Bill Thomson) #10

Not a mobile plan, but a metered home inet plan with a 10GB limit.

(Greebo) #11

Yes, I understood it was metered… my question still stands… who has a 10GB metered home plan?
I’m fairly used to seeing mobile (or cell if you like) data plans around 10GB… is that what we’re talking about?

How prevalent is that for people downloading an emonSD image?

(Bill Thomson) #12

Robert does…

(Greebo) #13

… and I thought Australia had backwards Internet!

(Greebo) #14

I’ve just had a look at the “compressed image” support in Etcher and it has had built-in support for .xz files since v1.0.0 (> 2 years ago)

Given the emonSD “Download and Flash” instructions suggest using Etcher to push the image onto your SD card, perhaps .xz is actually the most appropriate compression format :smiley:

(Brian Orpin) #15

I’d simply offer both - job done.

(Greebo) #16

Always with the simple solutions… :yum: