[Digikam-users] Problem with digikam edited jpegs

Gilles Caulier caulier.gilles at gmail.com
Tue Jun 19 07:00:16 BST 2007

Hi JC,

I remember to have read a comment in bugzilla about this subject, but i
cannot find again the link... But i'm sure than the problem is relevant of
theses optimizations options passed to JPEG library :


Like you can see, i have added 2 new line in digiKam JPEG encoder :

 +    // B.K.O #130996: set horizontal and vertical Subsampling factor to 1
for a best
 +    // quality of color picture compression.
 +    cinfo.comp_info[0].h_samp_factor = 1;
 +    cinfo.comp_info[0].v_samp_factor = 1;

If you have recompiled digiKam yourself, you can perform  a  simple test to
comment  these line in  digikam/libs/dimg/loaders/jpegloader.cpp located in
JPEGLoader::save() method.

Just recompile and install digiKam and try again.

If problem diseapear, let's me hear. i will add a new option in JPEG
settings panel to enable/disable these optimizations.


Gilles Caulier

2007/6/19, jc <jumpingclear at yahoo.co.uk>:
> I recently edited some jpegs in digikam 9.1 - quite heavy levels and
> colour correction. I am having odd problems when opening them in some
> windows programs and when printing them. On some I added a plain white
> border. When opening the pic in windows xp picture viewer the border is
> green (I boosted green quite a bit in the jpeg before adding the border)
> and the colours in the photo are displayed differently to how they look in
> digikam. I get the same effect when opening them in CS2 bridge. However,
> in XNview and when opening in CS2 itself they display as in digikam. When
> printing the colours are also incorrect but the printer prints unedited
> pics ok. I tried opening one in XNview and then resaving without any
> changes and the resaved version displays correctly in xp image viewer.
> Any ideas?
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
> _______________________________________________
> Digikam-users mailing list
> Digikam-users at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20070619/42362134/attachment.html>

More information about the Digikam-users mailing list