N
N
nirvimel2017-02-03 23:55:17
C++ / C#
nirvimel, 2017-02-03 23:55:17

How to decompress JPEG, edit and compress back on the same DQT (quantization table) that was in the original?

Given: When unpacking from JPEG, in addition to the image itself, you need to get the DQT (quantization table), subsampling parameters, the progressive flag and all other parameters. After that, the edited (programmatically) image must be packed with the same parameters and (most importantly) quantized on the same DQT.
Question: What library will help to implement this at a sufficiently high level of abstraction.
So far I see a solution only on libjpeg. But one jpeglib.h for >1200 lines and the almost complete absence of manuals and examples sharply discourages the desire to dive into all this. I still hope to find a better tool.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2017-02-04
@15432

this program compresses only modified blocks.
hardly leaves the original table completely, but you never know..
www.betterjpeg.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question