1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:17:35 +00:00
serenity/Base/res/html/misc/jpg.html
Devashish 8b71b839fa LibGfx+LibWeb: Add JPEG decoder and integrate with LibWeb
This patch adds support for JPEG decoding. The JPEG decoder is capable
of handling standard 2x1 horizontal, 2x1 vertical and quartered chroma
subsampling. The implemented Inverse DCT performs with a decent speed.

As of interchange formats, since we tend to ignore the metadata in APPn
markers, the decoder can handle any format compatible with JFIF, which
includes EXIFs and sometimes WebMs too. The decoder does not support
progressive JPEGs yet.
2020-06-23 13:51:19 +02:00

23 lines
719 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pretty JPEG Pictures</title>
</head>
<body>
<div>
<h3>Non-subsampled Lena</h3> <br>
<img alt="lena" src="jpgsuite_files/non-subsampled-lena.jpg"/> <br>
<h3>Chroma Horizontally Halved Lena</h3> <br>
<img alt="lena" src="jpgsuite_files/horizontally-halved-lena.jpg"/> <br>
<h3>Chroma Vertically Halved Lena</h3> <br>
<img alt="lena" src="jpgsuite_files/vertically-halved-lena.jpg"/> <br>
<h3>Chroma Quartered Lena</h3> <br>
<img alt="lena" src="jpgsuite_files/chroma-quartered-lena.jpg"/><br>
</div>
<div>
<h3>Oh Lena!</h3> <br>
<img alt="lena" src="jpgsuite_files/oh-lena.jpg"/>
</div>
</body>
</html>