Skip to content

ImageProcessing-ElectronicPublications/jpegquant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release (latest by date) GitHub Release Date GitHub repo size GitHub all releases GitHub

JPEGQUANT

JPEG DCT coefficients access in C

This provides access via an array to the DCT coefficients which can then be modified before being re-saved as another JPEG. It depends on the IJG JPEG library (or libjpeg) which can be found here: http://www.ijg.org/

USAGE

Origin:
Origin
[211044]

./jpegquant -q 2 lena.q100.jpg lena.q100.jq02.jpg

Quant=02
[175851]
butteraugli=2
butteraugli: 0.776085

jpeg-compare -m sum -n lena.q100.jpg lena.q100.jq02.jpg 
SUM: 0.945429 (UM) # > 0.93 (HIGH)
./jpegquant -q 4 lena.q100.jpg lena.q100.jq04.jpg

Quant=04
[127572]
butteraugli=4
butteraugli: 1.300308

jpeg-compare -m sum -n lena.q100.jpg lena.q100.jq04.jpg 
SUM: 0.833405 (UM) # > 0.76 (MEDIUM)
./jpegquant -q 10 lena.q100.jpg lena.q100.jq10.jpg

Quant=10
[60209]
butteraugli=10
butteraugli: 2.399572

jpeg-compare -m sum -n lena.q100.jpg lena.q100.jq10.jpg 
SUM: 0.574876 (UM) # > 0.50 (LOW)
./jpegquant -q 20 lena.q100.jpg lena.q100.jq20.jpg

Quant=20
[30029]
butteraugli=20
butteraugli: 4.421662

jpeg-compare -m sum -n lena.q100.jpg lena.q100.jq20.jpg 
SUM: 0.367628 (UM) # < 0.50 (DIRTY)

See all sample files for JPEGquant.

See also

Authors

Copyright (C) 2012, Owen Campbell-Moore.
Modify 2019-2023, zvezdochiot
Public Domain Mark 1.0

HomePage

https://github.com/ImageProcessing-ElectronicPublications/jpegquant

About

JPEG DCT coefficients access in C. Quant JPEG DCT coefficients.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published