Lbry-desktop: Use TinyPNG API in App to Compress Files Before Sending to Spee.ch

Created on 21 Jun 2018  路  6Comments  路  Source: lbryio/lbry-desktop

Smaller Files = Faster Files, Less Storage, Less Overheads.

TinyPNG is a service I can't live without for my web development work, even after professionally compressing in Photoshop, I can still save a further 40% with TinyPNG.

Many/most content providers have no idea how to compress images for the web. With this in the LBRY app, they wouldn't have to, they would get vastly small files without having to do anything.

TinyPNG supports lossless, lossy and resizing. Lossless should be mandatory with other options being optional.

However, there is a charge, like Amazon AWS. But if it works out that you save more from smaller files then it's not only worth in terms of finance, but also in terms of having a better experience with faster files and less congestion.

The below image (thumbs.jpg) was a typical image a typical user would upload to LBRY.

image

creator good first issue help wanted 2 improvement

Most helpful comment

All 6 comments

Example:

curl --user api:YOUR_API_KEY \
     --data-binary @thumbs.jpg -i https://api.tinify.com/shrink

I was going to suggest adding an open source option but didn't know of any or if they produced good results. I'll see if there is a test area for the one above and give it a go.

@tzarebczan should this be closed in favor of 1770?

  1. Any optimization behavior that is logical to add to the desktop is presumably logical to add to spee.ch directly. So this should probably be a ticket on spee.ch.

  2. If moving to spee.ch, it is decently likely this should be done locally rather than via a 3rd-party API.

Issue moved to lbryio/spee.ch #599 via ZenHub

Was this page helpful?
0 / 5 - 0 ratings