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 304148 - Export dialog reports PSD files do not support layer masks
Export dialog reports PSD files do not support layer masks
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.2.x
Other All
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-05-14 05:59 UTC by Eric
Modified: 2008-01-15 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GIMP's error message (287.25 KB, image/png)
2005-05-14 19:11 UTC, Eric
Details

Description Eric 2005-05-14 05:59:22 UTC
Distribution/Version: Debian Testing

1. Open a PSD file containing a layer mask.
2. Save the PSD file.

What happens:
GIMP reports that PSD files cannot handle layer masks.

What should happen:
GIMP should save the image, layer masks and all. PSD files definitely can handle
layer masks.
Comment 1 Michael Schumacher 2005-05-14 07:51:05 UTC
Patches to the PSD plug-ins would be welcome...
Comment 2 Sven Neumann 2005-05-14 14:50:08 UTC
GIMP doesn't report that PSD files do not support layer masks, it tells you that
the PSD plug-in doesn't support them.

*** This bug has been marked as a duplicate of 109841 ***
Comment 3 Eric 2005-05-14 19:10:42 UTC
>GIMP doesn't report that PSD files do not support layer masks, it tells you that
>the PSD plug-in doesn't support them.

GIMP reports the former. See attached screenshot.
Comment 4 Eric 2005-05-14 19:11:34 UTC
Created attachment 46434 [details]
GIMP's error message
Comment 5 Manish Singh 2005-05-14 19:14:24 UTC
Resetting an obviously duplicated bug (did you even *read* it?) only serves to
annoy developers.

*** This bug has been marked as a duplicate of 109841 ***
Comment 6 Sven Neumann 2005-05-14 23:19:49 UTC
The message in the export dialog is indeed confusing. This message is created in
a generic fashion, so this is not trivial to fix. Reopening and setting severity
to minor.
Comment 7 Simon Budig 2005-05-14 23:45:23 UTC
Quick idea: Rephrase the message to "The PSD-Plugin cannot handle...". This
would be always correct, although it is usually not the plugin that is to blame...
Comment 8 Sven Neumann 2005-05-15 00:37:00 UTC
The string is created in libgimp/gimpexport.c:

  _("%s can't handle layer masks"), format_name

The PSD plug-in could pass "PSD plug-in" as the format name.
Comment 9 Sven Neumann 2005-05-15 00:46:18 UTC
This solution is not quite right since "PSD plug-in" is not the format name. The
API doesn't allow to differentiate between "the format doesn't support" and "the
plug-in doesn't support".
Comment 10 Michael Natterer 2006-05-26 14:23:57 UTC
What about just treating all "can't support" as "plug-in can't support"?

That's as easy as replacing all

  _("%s can't handle foo")

by

  _("%s plug-in can't handle foo")
Comment 11 Kevin Cozens 2007-03-05 21:10:11 UTC
Saving layer masks appears to be working in SVN HEAD. The error mentioned above is due to GIMP_EXPORT_CAN_HANDLE_LAYER_MASKS not being included in the set of options passed to gimp_export_image in run() of the psd_save.c file. This makes the export routine think the PSD file format doesn't support layer masks.

This bug could be closed as the problem has been fixed in SVN HEAD or the fix can be backported to the 2.2 version of GIMP. It doesn't look like the changes needed are that extensive. If you want to backport the changes I can do that and attach a patch to this report.
Comment 12 Sven Neumann 2007-03-05 21:20:05 UTC
2007-03-05  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpexport.c: changed strings as suggested in bug #304148).

Kevin, please change the export capabilities in the trunk. I don't think we want to backport any new features to the 2.2 version at this point. We have made bad experiences with doing that in stable branches and we should concentrate on releasing 2.4.
Comment 13 Kevin Cozens 2007-03-05 22:18:50 UTC
Closing this report since the export capabilities of the trunk version handle layer masks and the suggested string change has been made.
Comment 14 herry 2007-08-10 09:19:33 UTC
><HTML><BODY><IMG width="512" src="http://bugzilla.gnome.org/attachment.cgi?id=46434" alt="http://bugzilla.gnome.org/attachment.cgi?id=46434" style="cursor: -moz-zoom-in;"/></BODY></HTML>