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 564697 - Recomposing 'YCbCrITU R470 256' and 'YCbCrITU R709 256' causes 'Error scanning 'decompose-data' parasite: too few layers found'
Recomposing 'YCbCrITU R470 256' and 'YCbCrITU R709 256' causes 'Error scannin...
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.8.2
Other All
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
: 689477 747853 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-16 03:41 UTC by david gowers
Modified: 2015-04-14 18:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description david gowers 2008-12-16 03:41:08 UTC
Steps to reproduce:
1. Load an image with alpha channel
2. Colors->Components->Decompose (Alpha) from the image (that is, in the Decompose dialog, select Alpha). It doesn't matter whether 'Decompose to layers' is checked or not.
3. Edit the resulting image
4. Colors->Components->Recompose

Actual Result:
Error message pops up:
"Error scanning 'decompose-data' parasite: too few layers found"

Expected Result:
Alpha channel is recomposed into source image.
Comment 1 Michael Schumacher 2008-12-26 23:29:27 UTC
The same happens in GIMP 2.6.3.
Comment 2 Nuno Cardoso 2009-12-17 21:03:26 UTC
I've been looking around and I think that this is more a feature implementation than a bug.
The compose plug-in doesn't support composing from less than 3 sources and also doesn't create an alpha layer if it doesn't exist. 
I could implement it but it would need a fair amount of code. Is it worth it to do?
Comment 3 Michael Natterer 2012-10-07 14:36:47 UTC
Recompose is not meant to merge components into existing layers,
it only creates new ones.
Comment 4 Max Mustermann 2012-12-02 12:41:46 UTC
*** Bug 689477 has been marked as a duplicate of this bug. ***
Comment 5 Max Mustermann 2012-12-02 12:42:15 UTC
Confirming for GIMP 2.8.2 on Mac OS X and Windows.
Comment 6 Michael Natterer 2015-04-14 18:05:46 UTC
*** Bug 747853 has been marked as a duplicate of this bug. ***
Comment 7 Michael Natterer 2015-04-14 18:06:44 UTC
The reporter of duplicate bug 747853 tracked it down to incorrect strings
in decompose.c
Comment 8 Michael Natterer 2015-04-14 18:10:56 UTC
Changed the subject because recomposing of individual components is
(naturally) not supported and should probably give another error message.
Comment 9 Michael Natterer 2015-04-14 18:13:43 UTC
Fixed in gimp-2-8, in master, the bug was fixed by a refactoring.

commit df7969c08d531c1c310c85d132b30321e838a47e
Author: Michael Natterer <mitch@gimp.org>
Date:   Tue Apr 14 20:08:17 2015 +0200

    Bug 564697 - Recomposing 'YCbCrITU R470 256' and 'YCbCrITU R709 256'...
    
    ...causes 'Error scanning 'decompose-data' parasite: too few layers found'
    
    Fix the identifier strings of the color models to have underscores
    instead of spaces. Found by Jonathan Tait.

 plug-ins/common/decompose.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)