Bug 148648 - Color managed previews not working in all tools
Summary: Color managed previews not working in all tools
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: ColorManagement-Views (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 20:43 UTC by Dik Takken
Modified: 2022-02-01 11:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.3


Attachments
patch to enable CM in previews (1.48 KB, patch)
2007-09-03 23:33 UTC, Sebastian Bothe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dik Takken 2007-08-08 20:43:33 UTC
Version:           0.9.2 (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages
OS:                Linux

All of the image plugins in the 'Color' menu lack color managed previews. 

How strange is that?? 

:-)
Comment 1 Sebastian Bothe 2007-09-03 23:33:01 UTC
Created attachment 21545 [details]
patch to enable CM in previews

The missing CM seems to be caused by not applying the image's workspace/
embedded profile.
Comment 2 caulier.gilles 2007-09-04 00:00:43 UTC
Arnd,

Patch is fine for me. you can apply it on svn. please CCBUGS this file and tags your commit with KDE4PORT. I will backport it later

Thanks in advance

Gilles
Comment 3 Arnd Baecker 2007-09-04 08:34:44 UTC
SVN commit 708196 by abaecker:

enable colormanagement in previews 
CCBUGS: 148648
TODO:KDE4PORT



 M  +2 -1      NEWS  
 M  +4 -0      libs/widgets/imageplugins/imageguidewidget.cpp  
 M  +1 -0      utilities/imageeditor/editor/imageiface.cpp  


--- branches/extragear/kde3/graphics/digikam/NEWS #708195:708196
@@ -38,4 +38,5 @@
 025 ==> 139024 : camera GUI new items selection doesn't work.
 026 ==> 139519 : digiKam silently fails to import when out of disc space.
 027 ==> 149469 : excessive trash confirmation dialogs after album is deleted.
-028 ==> 
+028 ==> 148648 : Color managed previews not working in all plugins
+029 ==> 
--- branches/extragear/kde3/graphics/digikam/libs/widgets/imageplugins/imageguidewidget.cpp #708195:708196
@@ -121,6 +121,8 @@
     bool sixteenBit = d->iface->previewSixteenBit();
     bool hasAlpha   = d->iface->previewHasAlpha();
     d->preview      = DImg(d->width, d->height, sixteenBit, hasAlpha, data);
+    d->preview.setICCProfil( d->iface->getOriginalImg()->getICCProfil() );
+    
     delete [] data;
 
     d->pixmap = new QPixmap(w, h);
@@ -478,6 +480,8 @@
     bool sixteenBit = d->iface->previewSixteenBit();
     bool hasAlpha   = d->iface->previewHasAlpha();
     d->preview      = DImg(d->width, d->height, sixteenBit, hasAlpha, data);
+    d->preview.setICCProfil( d->iface->getOriginalImg()->getICCProfil() );
+    
     delete [] data;
 
     d->pixmap = new QPixmap(w, h);
--- branches/extragear/kde3/graphics/digikam/utilities/imageeditor/editor/imageiface.cpp #708195:708196
@@ -227,6 +227,7 @@
     {
         d->targetPreviewImage = DImg(d->previewImage.width(), d->previewImage.height(),
                                      d->previewImage.sixteenBit(), d->previewImage.hasAlpha(), data);
+        d->targetPreviewImage.setICCProfil( d->previewImage.getICCProfil() );
     }
     else
     {
Comment 4 caulier.gilles 2007-09-04 10:14:52 UTC
SVN commit 708229 by cgilles:

digiKam from trunk (KDE4) : backport commits #708196 from KDE3 branch
CCBUGS: 148648


 M  +2 -0      imageguidewidget.cpp  


--- trunk/extragear/graphics/digikam/libs/widgets/imageplugins/imageguidewidget.cpp #708228:708229
@@ -125,6 +125,7 @@
     bool sixteenBit = d->iface->previewSixteenBit();
     bool hasAlpha   = d->iface->previewHasAlpha();
     d->preview      = DImg(d->width, d->height, sixteenBit, hasAlpha, data);
+    d->preview.setICCProfil( d->iface->getOriginalImg()->getICCProfil() );
     delete [] data;
 
     d->pixmap = new QPixmap(w, h);
@@ -484,6 +485,7 @@
     bool sixteenBit = d->iface->previewSixteenBit();
     bool hasAlpha   = d->iface->previewHasAlpha();
     d->preview      = DImg(d->width, d->height, sixteenBit, hasAlpha, data);
+    d->preview.setICCProfil( d->iface->getOriginalImg()->getICCProfil() );
     delete [] data;
 
     d->pixmap = new QPixmap(w, h);
Comment 5 caulier.gilles 2007-09-04 10:15:52 UTC
SVN commit 708230 by cgilles:

digiKam from trunk (KDE4) : backport commits #708196 from KDE3 branch
BUG: 148648


 M  +1 -0      imageiface.cpp  


--- trunk/extragear/graphics/digikam/utilities/imageeditor/editor/imageiface.cpp #708229:708230
@@ -227,6 +227,7 @@
     {
         d->targetPreviewImage = DImg(d->previewImage.width(), d->previewImage.height(),
                                      d->previewImage.sixteenBit(), d->previewImage.hasAlpha(), data);
+        d->targetPreviewImage.setICCProfil( d->previewImage.getICCProfil() );
     }
     else
     {