libremarkable
libremarkable copied to clipboard
Add more image formats to "live" example and a html selection page
I usually used a "livepng" version where I replaced the "JpegEncoder" with an "PngEncoder" since the images where usually smaller and lossless for my usecases (usually screenshots for READMEs in my projects).
Started this out with the intend to add png support alongside jpeg. Since we're using a webserver, I also decided to add a minimal html page to allow users to choose what format to use. Also checked that it renders okay on smartphones.

You can also now see the duration of the encoding in the console.
If you only show shades of gray in the screenshot, GIF should actually be more than lossless since it allows 256 colors in the palette.
People seem to like colors though. :|
Also would probably increase the already high processing duration for generating a GIF. But nice idea!
Rebased on current master and added the gamma correction from pr #96.
Yeah. A bit hard to describe since a lossless image is fast to generate but slow to transfer (so for the user it's slow again). Tried to keep the descriptions short and comparable. Will probably clarify it a bit and then merge it probably tomorrow.
@LinusCDE wanna rebase this?
Yeah. A bit hard to describe since a lossless image is fast to generate but slow to transfer (so for the user it's slow again). Tried to keep the descriptions short and comparable. Will probably clarify it a bit and then merge it probably tomorrow.
"Lossless and fast to capture, but largest file size by far."
Hey @LinusCDE we should merge this. Wdyt?
I don't mind.
Do you want me to rebase or do you want to do it?