Can one use lepton on your websites

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
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
 

Necropolis

Executive Member
Joined
Feb 26, 2007
Messages
8,401
How do "intuitive" php includes save on bandwidth?

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

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
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
 

_kabal_

Executive Member
Joined
Oct 24, 2005
Messages
5,923
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
 

kripstoe

Expert Member
Joined
Sep 15, 2012
Messages
3,820
It could also be used by the client to compress before upload, saving bandwidth.

EDIT: Reduce bandwidth on sync.
 

xumwun

Expert Member
Joined
Jul 30, 2006
Messages
3,151
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.
 

animal531

Expert Member
Joined
Nov 12, 2013
Messages
2,729
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.
 

oober

Expert Member
Joined
Apr 3, 2005
Messages
3,080
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