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 747853 - decompose mis-specifies recompose parasite for YCbCr ITU R470 256 and YCbCr ITU R709 256
decompose mis-specifies recompose parasite for YCbCr ITU R470 256 and YCbCr ...
Status: RESOLVED DUPLICATE of bug 564697
Product: GIMP
Classification: Other
Component: Plugins
2.8.14
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2015-04-14 14:16 UTC by Jonathan Tait
Modified: 2015-04-14 18:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Tait 2015-04-14 14:16:29 UTC
Steps to reproduce:
1. load an RGB image
2. Colors>Components>Decompose (Color model: YCbCr ITU R470 256)
3. Colors>Components>Recompose

Error:  
Recompose Warning
Error scanning 'decompose-data' parasite: too few layers found

Cause:
In decompose.c, array extract[], starting at line 229:

  { "YCbCr_ITU_R470",     TRUE, 3, { N_("luma-y470"),
                                     N_("blueness-cb470"),
                                     N_("redness-cr470") }, extract_ycbcr470 },

  { "YCbCr_ITU_R709",     TRUE, 3, { N_("luma-y709"),
                                     N_("blueness-cb709"),
                                     N_("redness-cr709") }, extract_ycbcr709 },

  { "YCbCr ITU R470 256", TRUE, 3, { N_("luma-y470f"),
                                     N_("blueness-cb470f"),
                                     N_("redness-cr470f") }, extract_ycbcr470f },

  { "YCbCr ITU R709 256", TRUE, 3, { N_("luma-y709f"),
                                     N_("blueness-cb709f"),
                                     N_("redness-cr709f") }, extract_ycbcr709f }

the compose_type strings for the *256 color models have been mis-specified without underscores between the various parts of the name. 
This causes the recompose plugin to get confused when it tries to interpret the parasite.

You can see the difference on the Script-Fu Console:

> (gimp-image-get-parasite 7 "decompose-data")
(("decompose-data" 0 "source=2 type=YCbCr_ITU_R470 22 23 24 "))
> (gimp-image-get-parasite 8 "decompose-data")
(("decompose-data" 0 "source=2 type=YCbCr ITU R470 256 26 27 28 "))
Comment 1 Michael Natterer 2015-04-14 18:05:46 UTC
Thanks, you found it :) I'll resolve this as a duplicate of an older bug,
and use your findings to fix it.

*** This bug has been marked as a duplicate of bug 564697 ***