After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 739862 - [PATCH] Port the gimp Exchange Color plug-in
[PATCH] Port the gimp Exchange Color plug-in
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: operations
git master
Other All
: Normal enhancement
: 0.3.0
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
: 726557 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-11-09 22:43 UTC by Thomas Manni
Modified: 2014-11-10 21:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
new gegl:color-exchange operation (249.41 KB, patch)
2014-11-09 22:43 UTC, Thomas Manni
none Details | Review
new gegl:color-exchange operation (249.00 KB, patch)
2014-11-10 18:53 UTC, Thomas Manni
none Details | Review

Description Thomas Manni 2014-11-09 22:43:12 UTC
Created attachment 290289 [details] [review]
new gegl:color-exchange operation

This patch contains gegl implementation of the Exchange Color Gimp plugin.
It also adds xml composition for testing and the related reference image.
Comment 1 Michael Natterer 2014-11-09 22:57:45 UTC
Thanks!

prepare() is called whenever a property changes, so you can move
that logic into prepare(), you normally don't need a notify()
implementation in a GEGL op.
Comment 2 Thomas Manni 2014-11-09 23:21:45 UTC
ok (I use the notify() mechanism after taking inspiration from the color-temperature operation)

Now, what is best :
- a totaly new patch with the correct implementation
or
- a corrective patch related to the first one 
?
Comment 3 Michael Natterer 2014-11-10 01:09:31 UTC
Indeed, but it's just as redundant there and should be fixed.

We prefer new patches, and you would mark the old patch as obsolete
when attaching the new patch.
Comment 4 Thomas Manni 2014-11-10 18:53:50 UTC
Created attachment 290374 [details] [review]
new gegl:color-exchange operation

notify() implementation removed ; logic moved to prepare()
Comment 5 Michael Natterer 2014-11-10 20:18:15 UTC
*** Bug 726557 has been marked as a duplicate of this bug. ***
Comment 6 Michael Natterer 2014-11-10 21:06:34 UTC
I meant to test this but said git push in the wrong tree, so there we
go... Let's address possible bugs/changes in git directly.

commit 2217e4f95577943355b976b9189af2ddecc5f100
Author: Thomas Manni <thomas.manni@free.fr>
Date:   Mon Nov 3 19:43:55 2014 +0100

    operations: add gegl:color-exchange

 operations/common/Makefile.am                   |   1 +
 operations/common/color-exchange.c              | 200 ++++++++++++++++++++++++
 tests/compositions/Makefile.am                  |   1 +
 tests/compositions/color-exchange.xml           |  18 +++
 tests/compositions/reference/color-exchange.png | Bin 0 -> 192726 bytes
 5 files changed, 220 insertions(+)
Comment 7 Michael Natterer 2014-11-10 21:42:34 UTC
Seems to produce results identical to the GIMP plug-in, so i removed the
plug-in and added your op instead, thanks :)