Can one use lepton on your websites

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,439
Reaction score
7,540
Location
Bellville
Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%

I want to know is there a way to build my websites to use this, will this give any benefit or will this just help if you have a gallery type site where users upload images and you then display them

IE -> Upload ( compress ) -> Display ( Decompressed ) like a roundtrip (compress and decompress) an image on the website.

===
I am above my fire making place so to simplify what I want to achieve:

I want to serve the smallest and fastest possible website to the browser at all times, so I do a lot with writing effective, but minimal CSS and HTML and make my PHP includes as intuitive as possible to save bandwidth needed to view the site I also use TinyJPG religiously to make the images have as little affect on the website size as possible.

So just looking to learn more and more ways on optimizing of delivery to the browser
 
How do "intuitive" php includes save on bandwidth?

PHP executes on the server side not on the client side.
 
How do "intuitive" php includes save on bandwidth?

PHP executes on the server side not on the client side.

no no,

I did not mean that I mean I try my utmost not to write functions that takes seconds to execute which causes the site to load longer.

the bandwidth is regarding the html. css, images, js all the stuff that gets send
 
from that article, it seems they are using it for storage.

so yes, you can store in lep, and when serving, decode and serve the jpg
 
It could also be used by the client to compress before upload, saving bandwidth.

EDIT: Reduce bandwidth on sync.
 
from that article, it seems they are using it for storage.

so yes, you can store in lep, and when serving, decode and serve the jpg

You could possibly have a decoder in javascript then do a ajax request for the lep files.
Could be quite cpu heavy though.
 
from that article, it seems they are using it for storage.

so yes, you can store in lep, and when serving, decode and serve the jpg

Bit late to the party. It works for Dropbox because they have a client that can decode the lepton (which they use internally for storage).
I don't know if there is a js library yet, and no OS have native support built in for it, so for the moment its not really worth it.
 
no no,

I did not mean that I mean I try my utmost not to write functions that takes seconds to execute which causes the site to load longer.

the bandwidth is regarding the html. css, images, js all the stuff that gets send

Just a silly observation, if you are going to store in some format you need to decode to display to the user/browser you might be adding seconds instead of reducing them...you need to weigh the decode time + download time against straight jpeg download time.

Lepton looks to be a server side tech which saves you some disk space in storage images. It looks like too much effort to me unless you are going to be storing a schit load of images.
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X