This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Inconsistent color interpolation

Tags: None
(comma "," separated)
User avatar
rksk16it
Registered Member
Posts
21
Karma
0
OS

Inconsistent color interpolation

Sat Aug 04, 2018 6:45 am
Hi

I m used to working with linear color modes. The defaults I have in krita is scRGB 16-bit integer/channel. The problem is, the color interpolation is inconsistent in vector layers. I show an image to illustrate the issue :

Image

As you can see, the region A is quite different from region B. Region A's interpolation is done between layers, according to the image's color settings (scRGB), whereas the region B's color is selected by interpolating according to SVG's standards, which is sRGB (a non linear mode).

I am not sure whether to call this a bug. On one hand it is staying consistent with SVG standards afaik (I might be wrong, not 100% sure). But on other hand, it is inconsistent with rest of the file itself where I have explicitly told it to use linear mode.

Is it possible somehow to instruct krita to use linear interpolation in vector layers ? I am ok with this even if it makes things inaccurate when svg items are copy/pasted from external programs like inkscape.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
No... That's not possible. Vector layers are always 8 bit sRGB because they use QPainter to paint the shapes.
User avatar
rksk16it
Registered Member
Posts
21
Karma
0
OS
boudewijn wrote:No... That's not possible. Vector layers are always 8 bit sRGB because they use QPainter to paint the shapes.


Ohh :| ... well this same issue prevented me from using QGraphicsView in something I was trying to write the other day, and I havent found anything yet in Qt's manual which can potentially be used to fix this, other than implementing a custom paint engine or something.

This makes vector layers almost unusable for me except for very basic usage, in non sRGB images. :(
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Yes... When Qt4 came out first, we tried to implement a QPaintEngine on top of our own paint device class, but we pretty soon gave up on that idea. It was just not feasible with the limited manpower we have.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]