Earlier quoted context omitted.
Is JPEG, PNG, etc a container format that could use arbitrary compression, like MKV? Or do we need a brand new format.
PNG is a very nice, extensible container format. In principle you can use it to store arbitrary image data, and still make use of all established metadata fields. In practice you probably shouldn't do that without changing the file extension and the magic bytes to avoid confusion among users and poorly written software.
Lepton image compression: saving 22% losslessly from images at 15MB/s
171–180 of 196 posts
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#172This is very impressive for archiving images. For a quick test, I run it over ~1.3GB JPEG pictures I had locally, the finally result is 810M, that's 66% of the original size, very impressive considering it's lossless. It only deals with jpg file though, no png, no iso, no zip, no any formats other than JPG. If someone can do this over video files that will be PiedPiper comes into real life.
The reason this can be done with JPEGs is the compression hasn't been updated. There are folks that have used h264 for compressing images and webp uses vp8 compression, both with much better results than JPEG. Lepton is cool because it helps make existing technology a whole lot better, but what we actually need is a better image format. You wouldn't see the same leap for videos because people have been working hard t…
https://people.xiph.org/~jm/daala/revisiting/subset1_psnrhvs...
so when you use a better encoder like mozjpeg, JPEG is actually competitive with the newest formats, given enough quality
it gets slightly grainier results with blocking artifacts, but BPG and WebM look like they had a painting algorithm blur out all of the details
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#173Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#174Earlier quoted context omitted.
IMO, it shows how they don't plan to make any money from this, don't consider it a large competitive advantage, and think that the largest advantage of open sourcing it are the 'free' open source volunteers will improve the software. It's interesting that they don't consider it a large enough competitive advantage. Either that or they are using this to attract engineers.
You also open source if it's in your best interest for something to become the 'standard'. In google there is a regret that they didn't open source a lot of stuff, because it ends up being reproduced outside of google in some form. The open source companies have an advantage in hiring and overall advancement of their product by using the open source version whatever their internal version was. You also see it in face…
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#175Earlier quoted context omitted.
Store it as FLIF then dynamically serve up whatever is needed for the web interface...
We're storing them as RAWs for our backups, but it's cheaper and faster to store them compressed and transmit them without a transformation step. I'll keep FLIF in mind, but it looks kind of unstable reading the website?
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#176I would be interested why C++ was chosen for https://github.com/dropbox/lepton instead of Rust? Given the recent usage of Rust for the implementation of Brotli compression ( https://blogs.dropbox.com/tech/2016/06/lossless-compression-... ) and that it's used for data storage ( http://www.wired.com/2016/03/epic-story-dropboxs-exodus-amaz... ) this somewhat surprises me. The reasons given for Rust as stated in https://…
SIMD support in Rust is still very early and required unsafe mode for SSE, and lepton makes heavy use of SSE intrinsics. Now I do see http://huonw.github.io/simd/simd/ was being developed in August 2015, but it seems to be gathering dust of late. I really do wish that Rust would provide nice alignment guarantees (eg 32 byte) without depending on customizing the allocator, and builtin, safe, SIMD instructions
Same could be said about C/C++. I'm guessing the answer is much simpler: the author(s) are comfortable with C++. And they probably don't deploy much rust code yet.
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#177* Implemented in C++ (-std=c++0x and -std=c++11 work, -std=c++98 doesn't work).
* Needs a recent g++ to compile (g++-4.8 works, g++-4.4 doesn't work).
* Runs on Linux and Windows.
* Runs on i386 (-m32) and amd64 (-m64) architectures. Doesn't work on other architectures, because it uses SSE4.1 instructions.
* Can be compiled without autotools (http://ptspts.blogspot.ch/2016/07/how-to-compile-lepton-jpeg...).
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#178This is very impressive for archiving images. For a quick test, I run it over ~1.3GB JPEG pictures I had locally, the finally result is 810M, that's 66% of the original size, very impressive considering it's lossless. It only deals with jpg file though, no png, no iso, no zip, no any formats other than JPG. If someone can do this over video files that will be PiedPiper comes into real life.
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#179Earlier quoted context omitted.
> FLIF is a novel lossless image format which outperforms PNG, lossless WebP, lossless BPG, lossless JPEG2000, and lossless JPEG XR in terms of compression ratio. > 74% smaller than lossless JPEG XR compression. > Works on any kind of image
> outperforms PNG, lossless WebP, lossless BPG, lossless JPEG2000, and lossless JPEG XR PNG was not designed to be used for photograph-like images. The rest of those were not designed to be lossless formats, the lossless version is just a tacked-on afterthought. Very unsurprising to find a codec that can beat those.
It's also worth noting that there aren't many other lossless formats, so it's still a valid comparison. I'm sure neither TIFF nor RAW outperform FLIF either.
Re: Lepton image compression: saving 22% losslessly from images at 15MB/s
#180This is very impressive for archiving images. For a quick test, I run it over ~1.3GB JPEG pictures I had locally, the finally result is 810M, that's 66% of the original size, very impressive considering it's lossless. It only deals with jpg file though, no png, no iso, no zip, no any formats other than JPG. If someone can do this over video files that will be PiedPiper comes into real life.
It's not really "lossless" if it only works with a lossy format though, right?