GMIC in Krita

David Revoy davidrevoy at gmail.com
Sun Apr 14 17:48:06 UTC 2013


Lukas : super !

@Silvio : Recolorize / Poster edges / Repair  are a cool choice :-)



2013/4/14 Lukast dev <lukast.dev at gmail.com>

> >> So my approach will be:
> >> a) convert layer actual color-space to FLOAT32 RGB(A), relayout pixel
> >> format (Krita uses bgrbgrbgrbgr, GMIC rrrrbbbbgggg)
> >
> >
> > Hm, I don't think so. Specially for float32 I created KoRgbF32Traits --
> > this means that the f32 and f16 colorspaces layout the pixel as rgba:
> >
> >    addChannel(new KoChannelInfo(i18n("Red")  , 0 * sizeof(float), 0,
> > KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(255, 0, 0)));
> >     addChannel(new KoChannelInfo(i18n("Green"), 1 * sizeof(float), 1,
> > KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(0, 255, 0)));
> >     addChannel(new KoChannelInfo(i18n("Blue") , 2 * sizeof(float), 2,
> > KoChannelInfo::COLOR, KoChannelInfo::FLOAT32, 4, QColor(0, 0, 255)));
> >     addChannel(new KoChannelInfo(i18n("Alpha"), 3 * sizeof(float), 3,
> > KoChannelInfo::ALPHA, KoChannelInfo::FLOAT32, 4));
> >
> > So not much conversion needed, I think
>
> Well, it still layout pixels in 2x2 image like this:
>
> rgbargbargbargba
>
> but GMIC asks for
>
> rrrrggggbbbbaaaa
>
> Lukas
> _______________________________________________
> Krita mailing list
> kimageshop at kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20130414/04d72e9f/attachment.html>


More information about the kimageshop mailing list