Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpeg-overwrite (betterjpeg)? #2

Open
zvezdochiot opened this issue Dec 8, 2022 · 0 comments
Open

jpeg-overwrite (betterjpeg)? #2

zvezdochiot opened this issue Dec 8, 2022 · 0 comments

Comments

@zvezdochiot
Copy link
Contributor

zvezdochiot commented Dec 8, 2022

Hi @ioppermann .

"Better jpeg" mode? This mode acts like a standard jpeg-encoder when creating a new file. But if there is a file (overwriting), quant tables are borrowed from an existing file. And if the sizes of the existing and saved images match, the procedure changes. Instead of encoding a block, the corresponding block of the existing file is decoded, and if the decoded block matches the stored one, the dcts of this block are borrowed, otherwise standard encoding is performed.

Example:

modjpegover --im test.jpg --ow test-mod.png

test.jpg and test-mod.png is exist files.

See also: https://betterjpeg.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant