RSS/Atom feed Twitter
Site is read-only, email is disabled

Layered TIFF

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 8 messages available
Toggle history

Please log in to manage your subscriptions.

mailman.243713.1239878199.1... 07 Oct 20:20
  Layered TIFF Gary Collins 29 Aug 14:08
   Layered TIFF Daniel Hornung 29 Aug 18:26
   Layered TIFF Michael Schumacher 29 Aug 18:36
mailman.262332.1251572312.1... 07 Oct 20:20
  Layered TIFF Gary Collins 01 Sep 13:51
mailman.262321.1251563209.1... 07 Oct 20:20
  Layered TIFF Gary Collins 01 Sep 14:18
Gary Collins
2009-08-29 14:08:28 UTC (over 15 years ago)

Layered TIFF

 
A long(ish) time ago I wrote:

   

Any chance that the ability to load/save layered TIFF files (with zip compression) might appear in a future version of GIMP?      

 
and Michael Schumacher replied:

Basically the tiff plug-in is waiting for someone to add this. Maybe you do want to have a try?

I'm thinking I might like to have a go at this sometime, if I get the chance. There's a lot I will need to find out before I can even make a start, so don't hold your breath! :-)  
1) I'd like to try to do this in python. But I'll need to learn it first. That shouldn't be a problem, I have the info, just a matter of getting round to it. But I'd like to ask: is that the best thing to use for writing a plug-in? Or at least, an acceptable thing? I want to learn python sometime in any case as it seems to be used rather widely for add-ons to various packages, eg "blender".  
2) I'd need to learn about the TIFF format. Again, shouldn't be a problem; I've recently downloaded the definition from Adobe's site. Again, just a matter of getting round to it :-)  
3) What I will need is specific information about writing for the gimp interface - details about how the layers would be accessed, etc. I'm not sure where would be the best place to look for information like this. And maybe this list won't be the best place for techie questions if I do get started - maybe there's a more suitable list (?)  
Any helpful response to (3) would be greatly appreciated!  
Thanks,
/Gary 

Daniel Hornung
2009-08-29 18:26:34 UTC (over 15 years ago)

Layered TIFF

Hello Gary,

On Saturday 29 August 2009, Gary Collins wrote:

1) I'd like to try to do this in python. But I'll need to learn it first. That shouldn't be a problem, I have the info, just a matter of getting round to it. But I'd like to ask: is that the best thing to use for writing a plug-in? Or at least, an acceptable thing? I want to learn python sometime in any case as it seems to be used rather widely for add-ons to various packages, eg "blender".

There are lots of plugins in python, but I don't know if it's the best choice for file i/o plugins, since if you do a good job, it might be included into GIMP by default, and Python isn't installed everywhere. I'm not sure about the speed difference compared to C since reading/writing the file should be the bottle neck in most cases.

2) I'd need to learn about the TIFF format. Again, shouldn't be a problem; I've recently downloaded the definition from Adobe's site. Again, just a matter of getting round to it :-)

And/or have a look at other open source projects (with a compatible license!) that can handle multi-layer tiff images. (ImageJ, possibly ImageMagick, exiv2 etc.)

3) What I will need is specific information about writing for the gimp interface - details about how the layers would be accessed, etc. I'm not sure where would be the best place to look for information like this. And maybe this list won't be the best place for techie questions if I do get started - maybe there's a more suitable list (?)

gimp-developer@lists.xcf.berkeley.edu

Thanks for you trying this project :-) Daniel

Michael Schumacher
2009-08-29 18:36:12 UTC (over 15 years ago)

Layered TIFF

Gary Collins wrote:

1) I'd like to try to do this in python. But I'll need to learn it first. That shouldn't be a problem, I have the info, just a matter of getting round to it. But I'd like to ask: is that the best thing to use for writing a plug-in? Or at least, an acceptable thing? I want to learn python sometime in any case as it seems to be used rather widely for add-ons to various packages, eg "blender".

The existing TIFF plug-ins are written in C.

http://git.gnome.org/cgit/gimp/tree/plug-ins/common/file-tiff-save.c will be most important one.

2) I'd need to learn about the TIFF format. Again, shouldn't be a problem; I've recently downloaded the definition from Adobe's site. Again, just a matter of getting round to it :-)

You should read about libtiff in particular: http://www.libtiff.org/libtiff.html

3) What I will need is specific information about writing for the gimp interface - details about how the layers would be accessed, etc. I'm not sure where would be the best place to look for information like this.

Other plug-ins that are accessing layers.

And maybe this list won't be the best place for techie questions if I do get started - maybe there's a more suitable list (?)

The gimp-developer list.

HTH, Michael

Gary Collins
2009-09-01 13:51:45 UTC (over 15 years ago)

Layered TIFF

Thanks for the info, Michael! I'll start checking out those sites.  
/Gary

Gary Collins
2009-09-01 14:18:43 UTC (over 15 years ago)

Layered TIFF

Hello Daniel,
 
thanks for your reply, which I somehow managed to miss before.

There are lots of plugins in python, but I don't know if it's the best choice for file i/o plugins, since if you do a good job, it might be included into GIMP by default, and Python isn't installed everywhere.  I'm not sure about the speed difference compared to C since reading/writing the file should be the bottle neck in most cases.
 
Michael also pointed out that existing TIFF plugins are in C. So I'll also be looking for a good, free C compiler for windows (XP). Do you know of any?

2) I'd need to learn about the TIFF format. Again, shouldn't be a problem; I've recently downloaded the definition from Adobe's site. Again, just a matter of getting round to it :-)

And/or have a look at other open source projects (with a compatible license!) that can handle multi-layer tiff images. (ImageJ, possibly ImageMagick, exiv2 etc.)
 
An excellent suggestion - thanks! I'll try to find some.

Thanks for you trying this project :-) Daniel
 
Well, I haven't, yet! It'll be some time - like I said before, don't hold your breath! :-)