libremarkable icon indicating copy to clipboard operation
libremarkable copied to clipboard

Add more image formats to "live" example and a html selection page

Open LinusCDE opened this issue 2 years ago • 4 comments

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. grafik

LinusCDE avatar Jan 17 '22 16:01 LinusCDE

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.

LoganDark avatar Jan 24 '22 11:01 LoganDark

People seem to like colors though. :|

Also would probably increase the already high processing duration for generating a GIF. But nice idea!

LinusCDE avatar Jan 24 '22 11:01 LinusCDE

Rebased on current master and added the gamma correction from pr #96.

LinusCDE avatar Feb 08 '22 23:02 LinusCDE

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 avatar Feb 09 '22 20:02 LinusCDE

@LinusCDE wanna rebase this?

fenollp avatar Aug 22 '23 16:08 fenollp

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."

LoganDark avatar Aug 22 '23 17:08 LoganDark

Hey @LinusCDE we should merge this. Wdyt?

fenollp avatar Oct 09 '23 08:10 fenollp

I don't mind.

LinusCDE avatar Oct 09 '23 22:10 LinusCDE

Do you want me to rebase or do you want to do it?

fenollp avatar Oct 10 '23 08:10 fenollp