Re: [Gimp-user] how to exposing more tiff load options for scripting
regarding libtiff. which version does gimp for windows use? I will download v4.0.2 for my distro and recompile (enabling the ojpeg options again) and see if the upated standard libtiff programs can handle the files properly ( I had to specially modify libjpeg 6b to support the old jpeg format in libtiff, then recompiled libtiff (3.8.2) with that ojpeg support. I had been confused because my distribution, even a quite old version (12.2.0 slackware) has libtiff 3.8.2 but the most recent version on www.libtiff.org is 3.61 however, I have found that www.remotesensing.org have a much more up-to-date version.(v4.0.2) regards, Tim ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list
Re: [Gimp-user] how to exposing more tiff load options for scripting
On Sun, 19 Aug 2012 12:08:38 +0100, Tim Dickson wrote: 1. I am using gimp 2.8 (windows version in this case - the version that comes with slackware is somewhat older) Note that the Windows version of GIMP ships with older version of libtiff, because there are problems with the most recent one on Windows. -- Jernej Simončič http://eternallybored.org/ ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list
[Gimp-user] how to exposing more tiff load options for scripting
I am trying to load single pages from multipage tiffs, convert them to monochrome (dithered), flatten the image, then save them as single monochrome, ccitt group4 tiffs. - all through scripts. The multipage tiffs contain pages in grayscale and colour which were created using the old style (problematic) jpeg compression option. I have tried other tools, such as libtiff (modified with a patch to handle the old jpeg compression), and the latest version of imagemajick. Unfortunately they cannot correctly convert the files, whereas gimp can, but only one page of the multi-page tiff at a time (gimp crashes if I load a 5page document (as separate images) then convert each image to monochrome,flatten and save in one session) the scripting function for loading tiffs file-tiff-load does not expose the options to load individual pages, or to select loading as images or as layers, which the visual file load/import does. does anyone have any suggestions as to how I can achieve this using a script.? manually is not a problem, but too time consuming for large (eg. 200page) tiffs. thanks, tim ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list
Re: [Gimp-user] how to exposing more tiff load options for scripting
On 08/18/2012 02:08 PM, Tim Dickson wrote: I am trying to load single pages from multipage tiffs, convert them to monochrome (dithered), flatten the image, then save them as single monochrome, ccitt group4 tiffs. - all through scripts. The multipage tiffs contain pages in grayscale and colour which were created using the old style (problematic) jpeg compression option. I have tried other tools, such as libtiff (modified with a patch to handle the old jpeg compression), and the latest version of imagemajick. Unfortunately they cannot correctly convert the files, whereas gimp can, but only one page of the multi-page tiff at a time (gimp crashes if I load a 5page document (as separate images) then convert each image to monochrome,flatten and save in one session) Are you using a developmental version (2.9 --)? If not, the crash itself warrants a bug report. the scripting function for loading tiffs file-tiff-load does not expose the options to load individual pages, or to select loading as images or as layers, which the visual file load/import does. does anyone have any suggestions as to how I can achieve this using a script.? manually is not a problem, but too time consuming for large (eg. 200page) tiffs. thanks, tim ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list
Re: [Gimp-user] how to exposing more tiff load options for scripting
I don't exactly get what you mean by 200 page tiffs? You mean one continuous image that takes 200 pages worth of sub-images? But anyways, are you using the batch mode? I've never done it but I understand there are a lot of options there from non-interactive command line mode? http://www.google.com/search?client=safarirls=enq=gimp+scripting+options+command+lineie=UTF-8oe=UTF-8 Dan On 8/18/12, Burnie West w...@ieee.org wrote: On 08/18/2012 02:08 PM, Tim Dickson wrote: I am trying to load single pages from multipage tiffs, convert them to monochrome (dithered), flatten the image, then save them as single monochrome, ccitt group4 tiffs. - all through scripts. The multipage tiffs contain pages in grayscale and colour which were created using the old style (problematic) jpeg compression option. I have tried other tools, such as libtiff (modified with a patch to handle the old jpeg compression), and the latest version of imagemajick. Unfortunately they cannot correctly convert the files, whereas gimp can, but only one page of the multi-page tiff at a time (gimp crashes if I load a 5page document (as separate images) then convert each image to monochrome,flatten and save in one session) Are you using a developmental version (2.9 --)? If not, the crash itself warrants a bug report. the scripting function for loading tiffs file-tiff-load does not expose the options to load individual pages, or to select loading as images or as layers, which the visual file load/import does. does anyone have any suggestions as to how I can achieve this using a script.? manually is not a problem, but too time consuming for large (eg. 200page) tiffs. thanks, tim ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list
Re: [Gimp-user] how to exposing more tiff load options for scripting
On Sat, Aug 18, 2012 at 5:47 PM, Daniel Smith opened...@gmail.com wrote: I don't exactly get what you mean by 200 page tiffs? You mean one continuous image that takes 200 pages worth of sub-images? TIFF can store multiple images (pages) in one file. TIFF is one of the most abused image formats I know of ;) http://en.wikipedia.org/wiki/Tagged_Image_File_Format#Multiple_subfiles Chris ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list
Re: [Gimp-user] how to exposing more tiff load options for scripting
On Sat, Aug 18, 2012 at 7:07 PM, Daniel Smith opened...@gmail.com wrote: That must be one heck of a big file. I used to work in graphics but nothing like that. This topic reminds me of the woman a while back who was making a giant fabric image like a mile long? It's probably not that bad, since they are grayscale and JPEG-compressed. By the OP's desire to save as CCITT 1-bit, I infer that they're probably document scans, so the JPEG/TIFF compression would keep the file size down. Since there's nothing in the procedure browser that seems to deal with multipage TIFFs, I'm not sure GIMP can be scripted to deal with them though. Some time ago, I looked at extending what was exposed to the procedure browser but I couldn't really make heads or tails of it. Hmm - how about getting ImageMagick to just split the TIFFs into individual files, then running the batch plug-in or your own script? Chris PS - I'm a freelancer and dabble in a bit of everything. Feel free to contact me off-list if you'd want to hire me to look into it for you. ___ gimp-user-list mailing list gimp-user-list@gnome.org https://mail.gnome.org/mailman/listinfo/gimp-user-list