Use TinyPNG API in App to Compress Thumbnails #599
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
Osprey
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
resilience
Tom's Wishlist
type: bug
type: discussion
type: error handling
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/spee.ch#599
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Invariant-Change commented on Thu Jun 21 2018
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.
@Invariant-Change commented on Thu Jun 21 2018
Example:
@btzr-io commented on Thu Jun 21 2018
Open source: https://github.com/lovell/sharp
@Invariant-Change commented on Fri Jun 22 2018
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.
@alyssaoc commented on Fri Aug 10 2018
@tzarebczan should this be closed in favor of 1770?
@kauffj commented on Mon Aug 13 2018
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.
If moving to spee.ch, it is decently likely this should be done locally rather than via a 3rd-party API.
We'd need a way to tell the API/spee.ch whether or not the item being uploaded is a thumb, and if so, compress it in order to improve loading performance.
IMO most compression behavior should be pushed all the way to https://github.com/lbryio/lbry.
Some exceptions:
It is also extremely unlikely that any app would use a remote service rather than whatever tool that service is inevitably using under the hood.