After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613938 - Saving single quant. table JPEG file with different Q gives bad JPEG
Saving single quant. table JPEG file with different Q gives bad JPEG
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
2.6.8
Other All
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2010-03-25 18:33 UTC by Galland
Modified: 2018-05-24 12:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
JPEG file with single quantization table and 4:4:4 subsamp. produced by HP Document Manager (from HP scanner) (46.24 KB, image/jpeg)
2010-03-25 18:33 UTC, Galland
Details

Description Galland 2010-03-25 18:33:28 UTC
Created attachment 157091 [details]
JPEG file with single quantization table and 4:4:4 subsamp. produced by HP Document Manager (from HP scanner)

Source file: JPEG file produced by an HP scanner using HP Document Manager software. Their JPEG implementation uses subsampling 4:4:4 and has the singularity that it uses a single Quantization table (with all coeffs.=2) for both luminance (Y) and chrominance (Cb and Cr).

To reproduce problem in GIMP:
1. Open attached JPEG file (produced from an HP scanner by HP Document Manager) in GIMP
2. Go to Save As... and save it as a JPG with some other name, the "Save As JPEG" dialog appears: then just change Quality to some other value and hit Save

Problem: Analyze output JPG file (very good tool: http://www.impulseadventure.com/photo/jpeg-snoop.html )
you will see that it now has two Quantization tables, as usual, one for luminance and the other for chrominance components. 

While the second table has the coefficients for the Quality factor selected in the save as JPEG dialog, the first table (for luminance) is, here is the error: still the very same Quantization table from the source file (that is all coeffs=2), instead of the corresponding luminance table calculated for the selected Quality factor.

This happens always with single Quantization table input JPEGs, no matter the Quality factor selected in GIMP with "Save As...".

If you need any more information or more files, please do not hesitate to ask.

Thank you very much for your time and the great tool GIMP is. Regards!
Comment 1 Michael Schumacher 2016-09-07 13:03:31 UTC
We should check if this is still a problem in git master.
Comment 2 GNOME Infrastructure Team 2018-05-24 12:45:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/326.