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
0002117ScribusInternalpublic05-Jun-23 18:1010-Jan-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.
Attached Files

- Relationships
child of 0004413acknowledged Metabug: Colors 

-  Notes
(0005102)
ringerc (administrator)
05-Jun-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)
05-Jun-25 20:15
edited on: 05-Jun-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)
10-Jan-18 16:15

So, any news on this? :)

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



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker