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 705895 - Losing layers groups when export to PSD
Losing layers groups when export to PSD
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.8.18
Other All
: Normal normal
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
: 779049 783694 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-08-13 11:48 UTC by Max
Modified: 2017-08-21 09:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Losing layers groups when export to PSD (39.99 KB, image/png)
2013-08-13 11:48 UTC, Max
Details
PSD export (2.9 version used) (141.78 KB, image/vnd.adobe.photoshop)
2016-10-07 09:33 UTC, Max
Details

Description Max 2013-08-13 11:48:57 UTC
Created attachment 251459 [details]
Losing layers groups when export to PSD

When I export project with groups of layers, I lose all data about single layers in this groups (1 group becomes 1 layer). But when I open an original Photoshop project, GIMP see all the groups. (2.8/2.82/2.84/2.86)
Comment 1 Joao S. O. Bueno 2014-01-05 20:09:35 UTC
Most likely true for all GIMP versions, including master, but I can't verify.

Thus bug, however, is not "critical" to GIMP's working - let's leave it as normal until someone dealing with PSD files come along to the issue.
Comment 2 Michael Natterer 2014-01-06 02:11:25 UTC
We have improved PSD support in a SoC git branch.
Comment 3 Michael Natterer 2015-09-07 18:31:11 UTC
Layer groups now export and import fine in master.
Comment 4 Max 2016-10-06 16:04:14 UTC
Problem still exists (at Windows versions at least). I've tried 2.8.18 now and nightly build of newest 2.9 branch.
Comment 5 Michael Schumacher 2016-10-06 18:11:11 UTC
Well, it's not surprising that 2.8 still has it - new features go into the development branch. Can you attach a PSD file exported from the 2.9 you're using?
Comment 6 Max 2016-10-06 19:27:41 UTC
Can't attach it because of size limit, so uploaded it to google drive: https://goo.gl/BpFHKr

Original XCF was created in 2.8 version. Then I've tried to create new 2.9 project with 2-3 simple layer groups and export it to PSD. Result is same.

Thank you for fast response!
Comment 7 Michael Schumacher 2016-10-06 22:23:45 UTC
If you create a new XCF file anyway, you can create one that is small enough to attach.
Comment 8 Michael Schumacher 2016-10-06 22:24:10 UTC
err, PSD file
Comment 9 Max 2016-10-07 09:31:24 UTC
This 2.9 build is kinda portable, so is it possible that it takes some settings from installed 2.8 version? Don't have a possibility to run it on clear OS.

Attaching the file to topic
Comment 10 Max 2016-10-07 09:33:19 UTC
Created attachment 337138 [details]
PSD export (2.9 version used)
Comment 11 Jehan 2017-03-24 06:08:59 UTC
Was there supposed to have layer groups in this PSD? Because importing in GIMP, I see indeed none.
Is anyone with PSD knowledge willing to investigate this bug before 2.10?
Comment 12 SenlinOS 2017-04-30 04:13:43 UTC
GIMP 2.9.5 PPA

Save .XCF, there are layer group.
Export .PSD, in GIMP and then open, layer group merged.
Color-Tag can be displayed.

No Photoshop open it test!
Comment 13 Michael Schumacher 2017-06-13 10:53:38 UTC
*** Bug 783694 has been marked as a duplicate of this bug. ***
Comment 14 Michael Schumacher 2017-06-14 14:24:21 UTC
*** Bug 779049 has been marked as a duplicate of this bug. ***
Comment 15 Jehan 2017-08-05 00:02:17 UTC
I confirm comment 12 with GIMP master.

Steps:
- Create new image.
- Add a group with layers in it.
- export to PSD.
- import back this PSD.

Result: the layer group contents has been merged into a single bitmap layer.

This means there is an issue either in export or import. Since I have imported successfully a PSD with layer groups from another bug report, and considering this report description, I assume the issue happens at export.
Comment 16 Juan Palacios 2017-08-20 22:29:05 UTC
Commit e40ebde53673afde19b1f54058393944d1b5582f has fixed this bug.
I just tested it and it seems that grouping is working fine.

Thanks Ell!
Comment 17 Ell 2017-08-21 09:46:12 UTC
Thanks for testing :)  Let's close this bug.

commit e40ebde53673afde19b1f54058393944d1b5582f
Author: Ell <ell_se@yahoo.com>
Date:   Sun Aug 20 16:37:25 2017 -0400

    plug-ins: in file-psd, add support for exporting layer groups
    
    Preserve layer-group structure when exporting to PSD, instead of
    flattening the groups.
    
    Fix active-layer index saving (the index was reversed.)

 plug-ins/file-psd/psd-save.c | 312 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------
 1 file changed, 224 insertions(+), 88 deletions(-)