Problem with digikam edited jpegs

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with digikam edited jpegs

jc-21
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
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with digikam edited jpegs

Gilles Caulier-4
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 :

http://bugs.kde.org/show_bug.cgi?id=130996

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.

Regards

Gilles Caulier

2007/6/19, jc <[hidden email]>:
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
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with digikam edited jpegs

jc-21
Hi Giles, and thanks for the reply. The version I am using is the one from  
the k/ubuntu repositories so I didn't compile it myself. I saw your post  
re 9.2 being available from achim now so I will update later today.

Would it be helpful if I sent you the affected jpegs?

thanks again

On Tue, 19 Jun 2007 07:00:16 +0100, Gilles Caulier  
<[hidden email]> wrote:

> 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 :
>
> http://bugs.kde.org/show_bug.cgi?id=130996
>
> 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.
>
> Regards
>
> Gilles Caulier
>
> 2007/6/19, jc <[hidden email]>:
>>
>> 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
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
>>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem with digikam edited jpegs

Gilles Caulier-4


2007/6/22, jc <[hidden email]>:
Hi Giles, and thanks for the reply. The version I am using is the one from
the k/ubuntu repositories so I didn't compile it myself. I saw your post
re 9.2 being available from achim now so I will update later today.

The JPEG optimizations options are always enable. This will certainly not fix your problem... but of course it's always fine to have the last release(:=)))
 

Would it be helpful if I sent you the affected jpegs?

No... The only way is to try without the JPEG optimization options  compiled in your digiKam. Like this your reproduce all change on a image and you test on your envirronnements (win32/Xnview) if problem diseapear or not.

Of course, you need to recompile yourself digiKam. It's not really complicated. Look in digikam web site, there is a script to use to checkout source code. Of course you need to resolve external depencies before to compile (look in README file all is annoted).

Alternative way, is to open a file in bugzilla about this problem to have a report witch can be fix later.

Gilles


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users