...making Linux just a little more fun!
Kat Tanaka Okopnik [kat at linuxgazette.net]
Hi gang -
I'm trying to figure out how to view a multipage tif. It's something that Wind0ws handles just fine, but I don't have the right tools to do it here on my Debian system.
When I try to view it in Gimp, it comes out very distorted, and pretty much illegible. (It's Japanese, so every pixel counts.)
Thanks,
-- Kat Tanaka Okopnik Linux Gazette Mailbag Editor kat@linuxgazette.net
Kapil Hari Paranjape [kapil at imsc.res.in]
Hello,
On Tue, 10 Apr 2007, Kat Tanaka Okopnik wrote:
> I'm trying to figure out how to view a multipage tif. It's something > that Wind0ws handles just fine, but I don't have the right tools to do > it here on my Debian system. > > When I try to view it in Gimp, it comes out very distorted, and pretty > much illegible. (It's Japanese, so every pixel counts.)
Try "tiff2pdf". It is part of the "libtiff-tools" package on Debian.
According to the manpage:
The program converts one TIFF file to one PDF file, including multiple page TIFF files, tiled TIFF files, black and white. grayscale, and color TIFF files that contain data of TIFF photometric interpretations of bilevel, grayscale, RGB, YCbCr, CMYK separation, and ICC L*a*b* as supported by libtiff and PDF.Of course, if you need to edit the TIFF file then this is not very useful.
Note that one reason for the distortion in gimp may be due to zooming out. Try to go to zoom level 1 (the key "1" should do it) and see if gimp views it better.
Hope this helps,
Kapil. P.S. Since you helped me out with Japanese, I feel good helping you out with Japanese! --
Kat Tanaka Okopnik [kat at linuxgazette.net]
On Wed, Apr 11, 2007 at 05:54:33AM +0530, Kapil Hari Paranjape wrote:
> Hello, > > On Tue, 10 Apr 2007, Kat Tanaka Okopnik wrote: > > I'm trying to figure out how to view a multipage tif. It's something > > that Wind0ws handles just fine, but I don't have the right tools to do > > it here on my Debian system. > > > > When I try to view it in Gimp, it comes out very distorted, and pretty > > much illegible. (It's Japanese, so every pixel counts.) > > Try "tiff2pdf". It is part of the "libtiff-tools" package on Debian.
Tried it, results copied below:
> According to the manpage: > The program converts one TIFF file to one PDF file, > including multiple page TIFF files, tiled TIFF files, black > and white. grayscale, and color TIFF files that contain > data of TIFF photometric interpretations of bilevel, > grayscale, RGB, YCbCr, CMYK separation, and ICC L*a*b* as > supported by libtiff and PDF.
nod Read the man page, it looked hopeful, but...
> Of course, if you need to edit the TIFF file then this is not very > useful.
Thankfully I just need to read the file.
> Note that one reason for the distortion in gimp may be due to zooming > out. Try to go to zoom level 1 (the key "1" should do it) and see if > gimp views it better.
The original is a fax, and the quality is bad, but I do have to zoom in to read it, anyway. changing zoom levels doesn't appear to change the distortion. For now, I can read the file by going through the layers dialog in Gimp, but it's frustrating knowing that Wind0ws handles this beautifully, and this machine doesn't.
> Hope this helps,
Alas, what I'm getting is:
kat@Fenrir:~$ tiff2pdf -p letter -j -f -o output.pdf 1953.tif TIFFOpen: 1953.tif: Cannot open. tiff2pdf: Can't open input file 1953.tif for reading.Feh. I have the impression that it's a stupid quirk from whatever software was used to originally generate the image.
Maybe I'm wrong, but I don't think Gimp generally says this about tiff files:
Gimp version 2 required--this is only version 1.211 at /usr/lib/gimp/2.0/plug-ins/redeye line 7. BEGIN failed--compilation aborted at /usr/lib/gimp/2.0/plug-ins/redeye line 7. (gimp:7888): LibGimpBase-WARNING **: gimp: wire_read(): error IGNORE THIS MESSAGE (gimp:7888): LibGimpBase-WARNING **: gimp: wire_read(): error Bareword "CHANNEL_OP_REPLACE" not allowed while "strict subs" in use at /usr/lib/gimp/2.0/plug-ins/ditherize line 56. Execution of /usr/lib/gimp/2.0/plug-ins/ditherize aborted due to compilation errors. (gimp:7888): LibGimpBase-WARNING **: gimp: wire_read(): error TIFF image: incorrect count for field "DateTime" (19, expecting 20); tag ignored TIFF image: filename.tif: unknown field with tag 292 (0x124) encountered TIFF image: incorrect count for field "DateTime" (19, expecting 20); tag ignored TIFF image: filename.tif: unknown field with tag 292 (0x124) encountered TIFF image: incorrect count for field "DateTime" (19, expecting 20); tag ignored(I did edit out the filename, as it wasn't pertinent.)
> Kapil. > P.S. Since you helped me out with Japanese, I feel good helping you > out with Japanese!
grin
-- Kat Tanaka Okopnik Linux Gazette Mailbag Editor kat@linuxgazette.net
Faber J. Fedor [faber at linuxnj.com]
On 10/04/07 16:19 -0700, Kat Tanaka Okopnik wrote:
> Hi gang - > > I'm trying to figure out how to view a multipage tif. It's something > that Wind0ws handles just fine, but I don't have the right tools to do > it here on my Debian system. > > When I try to view it in Gimp, it comes out very distorted, and pretty > much illegible. (It's Japanese, so every pixel counts.)
KDE has KFax. I stopped looking for other solutions after I found this little app.
HTH
-- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701
Neil Youngman [ny at youngman.org.uk]
On or around Wednesday 11 April 2007 00:19, Kat Tanaka Okopnik reorganised a bunch of electrons to form the message:
> Hi gang - > > I'm trying to figure out how to view a multipage tif. It's something > that Wind0ws handles just fine, but I don't have the right tools to do > it here on my Debian system.
I tend to use display (part of the ImageMagick package IIRC).
Another viewer I occasionally use is gqview, but I don't think that handles multipage TIFF well.
HTH
Neil
Kat Tanaka Okopnik [kat at linuxgazette.net]
On Wed, Apr 11, 2007 at 08:52:06AM +0100, Neil Youngman wrote:
> On or around Wednesday 11 April 2007 00:19, Kat Tanaka Okopnik reorganised a > bunch of electrons to form the message: > > Hi gang - > > > > I'm trying to figure out how to view a multipage tif. It's something > > that Wind0ws handles just fine, but I don't have the right tools to do > > it here on my Debian system. > > I tend to use display (part of the ImageMagick package IIRC). > > Another viewer I occasionally use is gqview, but I don't think that handles > multipage TIFF well.
Well, a combination of everyone's advice did the trick.
That, and maybe installing Ubuntu Edgy Eft, as well.
I installed efax, and then imagemagick.
After that, running 'convert' (a part of imagemagick) on the .tif '' convert 1897.tif 1897.jpg '' took three minutes (!) but resulted in success - 20+ jpg images pulled out of the file, neatly named for me. The images are still distorted, but they looked that way when I looked at it in gimp (as a multi-layer document).
Thanks, everyone.
-- Kat Tanaka Okopnik Linux Gazette Mailbag Editor kat@linuxgazette.net