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 778523 - Optionally add alpha to layers of imported images
Optionally add alpha to layers of imported images
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other All
: Normal enhancement
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
: 486902 762453 785079 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-02-12 12:36 UTC by Alexandre Prokoudine
Modified: 2017-07-20 06:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexandre Prokoudine 2017-02-12 12:36:27 UTC
Some users expect layers to always have an alpha channel.

Now that we have Image Import/Export options in Preferences, how about adding an option to always create a missing alpha channel when importing images?
Comment 1 Michael Natterer 2017-02-12 12:48:23 UTC
Good idea, and a joke to implement.

Wasn't there some other bug about this?
Comment 2 Michael Schumacher 2017-02-13 08:23:00 UTC
You're looking for bug 486902 - and bug 762453, which is related or even a duplicate. 

Bug 767177 about (not) being able to paint over transparent areas with some modes might be a precondition to always add an alpha channel vs. having layers without one.
Comment 3 Michael Natterer 2017-02-15 13:12:20 UTC
*** Bug 762453 has been marked as a duplicate of this bug. ***
Comment 4 Michael Natterer 2017-02-17 21:10:10 UTC
Fixed in master:

commit b3f802a0b750852397a545e56413a3a4a4edd3f5
Author: Michael Natterer <mitch@gimp.org>
Date:   Fri Feb 17 22:07:43 2017 +0100

    Bug 778523 - Optionally add alpha to layers of imported images
    
    Add "Add alpha to all layers of imported images" to prefs -> import
    and honor the setting in file_import_image().

 app/config/gimpcoreconfig.c      | 14 +++++++++++
 app/config/gimpcoreconfig.h      |  1 +
 app/config/gimprc-blurbs.h       |  3 +++
 app/dialogs/preferences-dialog.c |  4 +++
 app/file/file-import.c           | 53 +++++++++++++++++++++++++++++-----------
 5 files changed, 61 insertions(+), 14 deletions(-)
Comment 5 Michael Natterer 2017-02-17 21:12:10 UTC
*** Bug 486902 has been marked as a duplicate of this bug. ***
Comment 6 Michael Schumacher 2017-07-20 06:41:06 UTC
*** Bug 785079 has been marked as a duplicate of this bug. ***