Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002117ScribusInternalpublic2005-06-23 18:102010-01-18 16:15
Reporterringerc 
Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
StatusacknowledgedResolutionopen 
Platformx86 LinuxOSFedora CoreOS Version3
Product Version 
Target VersionFixed in Version 
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.
Patch
Attached Files

- Relationships
child of 0004413acknowledged Metabug: Colors 

-  Notes
(0005102)
ringerc (administrator)
2005-06-23 18:13

See http://www.burtonini.com/blog//computers/eog-icc-2005-06-16-09-57 [^] and openicc discussion. Anybody who has it, please post more info here.
(0005125)
cbradney (administrator)
2005-06-25 20:15
edited on: 2005-06-25 20:17

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

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

#endif


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;
        }
#else
        return NULL;
#endif;
}


(0023100)
alexandre (developer)
2010-01-18 16:15

So, any news on this? :)

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



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker