View Issue Details

IDProjectCategoryView StatusLast Update
0002117ScribusInternalpublic2010-01-18 15:15
ReporterringercAssigned To 
Status acknowledgedResolutionopen 
Platformx86 LinuxOSFedora CoreOS Version3
Summary0002117: Support reading display profile using XICC
DescriptionWith the proposed XICC scheme, a colour profile for a display can be set on the display as an atom. Support reading this and offering it as an option in the profile selection list (named "System Display Profile" or something), probably the default until/unless the user chooses something else.
TagsNo tags attached.


child of 0004413 acknowledged Metabug: Colors 



2005-06-23 16:13

reporter   ~0005102

See and openicc discussion. Anybody who has it, please post more info here.


2005-06-25 18:15

administrator   ~0005125

Last edited: 2005-06-25 18:17

Code pasted to OpenICC mailing list, from Krita:
#ifdef QT_WS_X11

#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <lcms.h>


static KisProfileSP KisProfile::getScreenProfile (int screen)
#ifdef QT_WS_X11

        Display *dpy;
        Atom icc_atom, type;
        int format;
        long nitems;
        long bytes_after;
        unsigned char *str;
        int result;

        cmsHPROFILE *profile = NULL;

        static Atom icc_atom = XInternAtom( qt_xdisplay(), "_ICC_PROFILE", False );

        if  ( XGetWindowProperty ( qt_xdisplay(), qt_xrootwin( screen ), icc_atom, 0, INT_MAX, False, XA_CARDINAL, &type, &format, &nitems, &bytes_after, (unsigned char **)&str)) {
                if( nitems )
                        profile = cmsOpenProfileFromMem(str, nitems);
                XFree (str);
                return new KisProfile(profile);
        } else {
                kdDebug() << "No profile, not correcting" << endl;
                return NULL;
        return NULL;


2010-01-18 15:15

developer   ~0023100

So, any news on this? :)

Issue History

Date Modified Username Field Change
2005-06-23 16:10 ringerc New Issue
2005-06-23 16:10 ringerc Status new => acknowledged
2005-06-23 16:13 ringerc Note Added: 0005102
2005-06-25 18:15 cbradney Note Added: 0005125
2005-06-25 18:16 cbradney Note Edited: 0005125
2005-06-25 18:16 cbradney Note Edited: 0005125
2005-06-25 18:17 cbradney Note Edited: 0005125
2006-10-15 12:19 mhanski Relationship added child of 0004413
2010-01-18 15:15 alexandre Note Added: 0023100