You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6ee1bf4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
### New
6
6
7
7
-`encodeJPEG({ progressive: true })` writes a progressive JPEG: browsers show the whole picture blurry first and sharpen it while the file loads, and the file is about 3% smaller for photos with the same pixels (a fixed set of scans from the ones mozjpeg tries, each with Huffman tables made for it). Encoding takes 1.1 to 1.3 times as long (a 2400x1600 photo at quality 80: 75 to 95 ms)
8
-
-`encodeJPEG({ quantization: 'flat' })` keeps edges and text clearer with fewer visible artifacts: it quantizes every detail alike instead of by the JPEG standard's tables. Measured by PSNR and SSIM the files are about 10% smaller on average at the same quality (more or less by image). They are larger at the same `quality`, so lower that to keep the size (by 15 to 25 for photos). The default stays `'standard'`, and its files don't change
8
+
-`encodeJPEG({ quantization: 'flat' })` keeps edges and text clearer with fewer visible artifacts: it uses the same quantization step for every frequency instead of the JPEG standard's tables. At the same PSNR the files were 3 to 30% smaller in a test of photos and a screenshot; at the same SSIM they ranged from 21% smaller to 15% larger. They are larger at the same `quality`, so lower that until the size matches (by about 15 to 25 around quality 60 for photos). The default stays `'standard'`, and its files don't change
0 commit comments