ilyakurdyukov / jpeg-quantsmooth

JPEG artifacts removal based on quantization coefficients.
GNU Lesser General Public License v2.1
254 stars 21 forks source link

Arithmetic coded JPG #18

Closed TPS closed 3 years ago

TPS commented 3 years ago

@ilyakurdyukov I've used QuantSmooth via IrfanView & noticed that it isn't currently compatible with arithmetic coded jpgs. Are there plans to implement that?

zvezdochiot commented 3 years ago

@TPS say:

it isn't currently compatible with arithmetic coded jpgs.

What kind of "incompatibility"?

ilyakurdyukov commented 3 years ago

This is actually just because the plugin is linked to libjpeg with the arithmetic encoder disabled.

TPS commented 3 years ago

Currently, Irfanview crashes whenever loading an arithmetic JPG while QuantSmooth is enabled, but loads them normally when QS is disabled. (I've already e-mailed IV's dev, but can't find a way to directly @ him here.)

TPS commented 3 years ago

This is actually just because the plugin is linked to libjpeg with the arithmetic encoder disabled.

@ilyakurdyukov Is there a technical reason for that, or could it be resolved as simply as relinking with such support re-enabled? Also, do you mean base libjpeg or libjpeg-turbo? (Or isn't there a difference anymore? I haven't tracked that in a little while.)

ilyakurdyukov commented 3 years ago

@ilyakurdyukov Is there a technical reason for that, or could it be resolved as simply as relinking with such support re-enabled? Also, do you mean base libjpeg or libjpeg-turbo? (Or isn't there a difference anymore? I haven't tracked that in a little while.)

I can rebuild with arithmetic decoder enabled. libjpeg-turbo is supported.

ilyakurdyukov commented 3 years ago

Check jpegqs_irfanview.zip in releases (x64 version in "x64" folder). I also sent a copy to Irfan.

TPS commented 3 years ago

@ilyakurdyukov That solved it perfectly. Thanks! 🙇🏾‍♂️

TPS commented 3 years ago

@ilyakurdyukov Just to be clear, is the IV plugin you sent built against libjpeg-turbo or libjpeg?

ilyakurdyukov commented 3 years ago

libjpeg, may work with both, as said. (and should be compatible with mozjpeg also)