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 335975 - RFE: Save multilayer TIFFs without flattening
RFE: Save multilayer TIFFs without flattening
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
git master
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 637571 (view as bug list)
Depends on:
Blocks: 325296
 
 
Reported: 2006-03-25 17:12 UTC by Adam Buchbinder
Modified: 2018-05-24 11:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (22.88 KB, patch)
2011-05-18 04:12 UTC, Dominic Canare
needs-work Details | Review
Allows TIFF layer save modes: merge, flatten, save as pages (4.51 KB, patch)
2011-05-18 18:17 UTC, Dominic Canare
needs-work Details | Review
save_as_pages tiff save mode for gimp 2.6 (22.92 KB, patch)
2012-12-07 14:38 UTC, Oleg
needs-work Details | Review

Description Adam Buchbinder 2006-03-25 17:12:12 UTC
Gimp can import multilayer TIFFs, such as those produced by Hugin's stitcher;
the TIFF layers are imported as Gimp layers. However, after editing the layers'
alpha masks (part of the Hugin workflow), Gimp will refuse to save the TIFF as a
multilayer image. Multilayer images make it much easier to adjust layer masks;
currently, after adjusting them, the layers have to be exported as individual
TIFFs for final assembly.
Comment 1 Carol 2006-04-14 03:27:22 UTC
We are supposed to be working with the other freesoftware applications to make a more modern image format to handle the things that TIFF does and more.  Without a patch attached to this, I would like to see the developers who are involved, able and interested spend their time on that.

http://create.freedesktop.org/

If you could consider what I have suggested here and provide a patch or close this bug yourself, it would be helpful to our bug managing tasks.
Comment 2 vabijou 2006-09-13 15:17:54 UTC
Why not just save as .xcf?
Comment 3 Michael Schumacher 2006-09-13 20:35:23 UTC
Because XCF isn't multilayer TIFF. The latter is usable with more apps, e.g. fax viewers.

It's not the point of this enhancement request to find a workaround for one user, it is a reminder that it would be nice to have this in the tiff plug-in.
Comment 4 Adam Buchbinder 2006-09-13 21:43:24 UTC
The specific application, for me, that uses multilayer tiffs is enblend. It also works using multiple tiffs with offsets; see bug 335615 for that issue.

http://enblend.sf.net
Comment 5 Kai-Uwe Behrmann 2006-10-10 12:57:21 UTC
You can look at the CinePaint code to see how it works close to the Gimp
way of live. The plug-in is named tiff as well.
http://www.CinePaint.org

It was included in the plug-in version I once had made working for Gimp,
but was rejected by some reasons. Maybe you can extract what is needed
and provide a patch. I can send you the actual plug-in with further hints 
if you want.
Comment 6 llimaa 2007-09-24 06:47:02 UTC
I don't have programming knowledge, and that's why i can't provide a patch. But layered tiffs would be a nice cross platform format and it is supported by most applications out there. This would noticeable improve a production pipeline between multiple applications and operating systems.

Would be nice if someone could take a look. Thanks in advance!
Comment 7 Sean Glover 2007-10-14 21:44:26 UTC
When I am coloring a piece of artwork, I like to do it in layers. Since this takes a long time, I would like to save my work so I can finish later. However, gimp will not let me save images with different layers and wants me to flatten the image. This is very frustrating, and I would like this problem to be fixed.

-Sean
Comment 8 Raphaël Quinet 2007-10-15 11:37:50 UTC
(In reply to comment #7)
> gimp will not let me save images with different layers and wants me to flatten
> the image. [...]

For this, you should save your image as XCF, which is GIMP's native file format.

But this bug is not about saving layers, it is about the TIFF file format and the support for multiple layers in that file format.  Other software expects to work with multi-layer TIFF files and it would be nice if the GIMP tiff plug-in could support that.  Volunteers are still welcome.
Comment 9 Andrew 2010-06-07 08:29:55 UTC
My most common need for multilayer TIFF is to use tiff2pdf with typically twenty to a hundred pages per document. I have also wanted to get multilayer images to other editors a number of times, and again TIFF would have been the solution if GIMP supported it.
Comment 10 Michael Schumacher 2010-06-07 08:42:58 UTC
If you want to try implementing this, have a look at the TIFF save plug-in http://git.gnome.org/browse/gimp/tree/plug-ins/common/file-tiff-save.c and the libtiff documentation, most likely this part: http://www.libtiff.org/libtiff.html#Dirs
Comment 11 Michael Schumacher 2010-12-19 15:11:13 UTC
*** Bug 637571 has been marked as a duplicate of this bug. ***
Comment 12 Dominic Canare 2011-05-18 04:12:04 UTC
Created attachment 188010 [details] [review]
Proposed fix

Adds a checkbox to the tiff-save-image dialog. If checked, image layers will be saved as pages.
Comment 13 Dominic Canare 2011-05-18 18:17:26 UTC
Created attachment 188062 [details] [review]
Allows TIFF layer save modes: merge, flatten, save as pages

I realized that NOT choosing to save as pages did not generate the same file as non-patched GIMP. This patch allows user to flatten or merge on export (or save layers as pages).
Comment 14 Oleg 2012-12-07 14:38:57 UTC
Created attachment 230971 [details] [review]
save_as_pages tiff save mode for gimp 2.6

The same patch for gimp 2.6
Comment 15 Oleg 2012-12-07 14:39:57 UTC
Tested for gimp 2.6. Works well.
Comment 16 Dominic Canare 2012-12-07 15:27:27 UTC
Hi Oleg!

Was there anything wrong with the solution I submitted?
Comment 17 Oleg 2012-12-07 15:36:18 UTC
Hi, Dominic.

Your solution is great! But your two patches are applied with errors to gimp 2.6 sources and i simply adopted it by hands for gimp 2.6 (Debian squeeze has gimp 2.6 in repository).
Comment 18 Oleg 2012-12-07 15:37:58 UTC
Dominic, Partha Bagchi in the mailing list said that:

This patch will not work with the current master and if I am not mistaken,
a cursory glance says that it won't save 16-bit tiffs and hence would have
to be modified.

But for me everything is good.

May be you interest in this.
Comment 19 Michael Natterer 2012-12-07 19:33:57 UTC
Why do you attach 2.6 patches here? We can only apply new features
like this to git master.
Comment 20 Oleg 2012-12-10 10:57:41 UTC
Hi, Michael.

Sorry. I just think that people find this page when searching about this problem and this patch is useful here.
Comment 21 Alexandre Prokoudine 2014-11-13 01:11:01 UTC
Dominic and Oleg,

We recently ported the TIFF plugin to GEGL which makes things like 16bit per channel loading/saving possible. Saving TIFF pages seems important to our users. Do you think you could give a shot to updating your patch so that we could include it in our further releases?

Thanks!
Comment 22 Michael Schumacher 2015-11-01 13:18:33 UTC
Comment on attachment 188010 [details] [review]
Proposed fix

Per comment 21
Comment 23 Michael Schumacher 2015-11-01 13:18:42 UTC
Comment on attachment 230971 [details] [review]
save_as_pages tiff save mode for gimp 2.6

Per comment 21
Comment 24 Michael Schumacher 2015-11-01 13:18:47 UTC
Comment on attachment 188062 [details] [review]
Allows TIFF layer save modes: merge, flatten, save as pages

Per comment 21
Comment 25 Cyrus Draegur 2016-05-04 17:40:31 UTC
I think it's great that something has been done about this... but I have no idea to use what's been attached here. I believe a fundamental problem with my experience is that the reason I'm trying to do *exactly* what this 'patch' describes is because my job requires it. 

And this being a professional workstation, its OS is not up to me. Therefore I'm on windows and there is NOTHING that can be done about that. This also means that I'm a complete n00b when it comes to turning raw text files into results. What do I do to make this work? o_o I feel like I searched for water but found a tank of oxygen and two tanks of hydrogen here. 

A "How do I use these" button, or a FAQ for dumbasses like me who don't know this sort of this, would be really nice too, just saying...
Comment 26 Jehan 2017-07-18 17:01:08 UTC
Hello people!

There is a cool patch on this bug report, but it doesn't apply to master (from what I understood, it never did since it was made for older version). That's quite sad. Anyone interested in TIFF support to work on this before we release 2.10? You can base your work from the proposed patch to
Comment 27 Jehan 2017-07-18 17:02:29 UTC
Argh sorry, posted too early. I was saying: You can base your work from the proposed patch which should make this contribution a lot easier (hence adding a "newcomers" keyword).
Comment 28 GNOME Infrastructure Team 2018-05-24 11:47:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/188.