multipage tiff viewer?

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

multipage tiff viewer?

#1 Post by Dingo »

Woof Woof 8)

I need a Tiff viewer (multipage) is any tiff viewer already in Puppy or not? thanks for any help
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

cd /usr/bin/
ls -1 tiff*

I get:
tiff2bw
tiff2pdf
tiff2ps
tiff2rgba
tiffcmp
tiffcp
tiffdiff
tiffdither
tiffdump
tiffgt
tifficc
tiffinfo
tiffmedian
tiffset
tiffsplit
tifftopnm


If you type for example:
tiff2pdf --help
then you can see how to use it.
But I don't know, if multiple pages are supported.

Maybe this is "tiffsplit" written for?
# tiffsplit
LIBTIFF, Version 3.8.2
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.

usage: tiffsplit input.tif [prefix]

You also could drag this script on your desktop, then you can drag a .tif from Rox-filer on it to convert to PDF.
roxtiff2pdf

Code: Select all

#!/bin/bash


#-- replace .tif .tiff .TIFF .TIF at end of filename with pdf
a=`echo "$1" | sed "s/\.tif*$/.pdf/i"`


#echo $a

tiff2pdf -o "$a" "$1"

#-- show the folder with the picture in rox
f=`dirname "$1"`
rox "$f"

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

yes, tiffsplit splits multipage tiffs.
You can then watch the single tiffs in mtpaint or gqview, so my PDF-converterscript from above is not needed.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#4 Post by Dingo »

yes, but, for example, my multipage tiff was a document sended by fax to mail service to me. for me, is easier and comfortable to view this via pdf viewer than split first in its single pages
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

http://linuxgazette.net/138/misc/lg/mul ... _file.html
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.

So my simple drag'n'drop script might work.
:)

I have no such tiff here, so I cannot test myself.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#6 Post by muggins »

Dingo,

you got me googling, as I've not heard of multi-page tiff before. But you're not alone in your quest:

http://ubuntuforums.org/showthread.php?t=10144
http://ubuntuforums.org/showthread.php?t=28449

Unfortunately, the ghfaxviewer has gnome dependencies for it to compile. There are also references to possibly using a browser plugin to view these tiffs. But anyway, I found qfaxreader, which I've uploaded here:

http://www.murga-linux.com/puppy/viewtopic.php?t=27406

Like Mu, not having any such documents as multi-page tiffs, I've got no idea whether/how the program works. Give it a try & let us know how it goes.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#7 Post by muggins »

Dingo,

here's an alternative:

http://tiff-plugin.sourceforge.net/

I've attached this, (compiled with pup2.16), so extract the attached package to /. It just extracsts 3 files, /usr/bin/mozilla-tiff-viewer, /usr/lib/mozilla-tiff-plugin/mozilla-tiff-plugin.so & a symlink in /usr/lib/mozilla/plugins.

Let us know how it compares, in viewing, with qfaxreader.

Here's a page to test whether the tiff plugin is working:

http://plugindoc.mozdev.org/testpages/tiff.html
Attachments
mozilla-tiff-plugin-0.3.2-1.tar.gz
(13.11 KiB) Downloaded 769 times
Last edited by muggins on Fri 28 Mar 2008, 01:14, edited 1 time in total.

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#8 Post by wjaguar »

Attached is what I use for multipage TIFFs; a simple Perl script which splits a TIFF into a temp directory and launches gqview to display the results. From usability standpoint, gqview in a directory browse mode is no worse than any natively "multipage-capable" TIFF viewer - and all such viewers known to me are inferior to gqview on features.
Attachments
showtiff.gz
Gzipped Perl script
(437 Bytes) Downloaded 763 times

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

Tiff Tools not there in Puppy 4

#9 Post by paulski »

I've been testing all me neato scripts for doing stuff with tiffs - I get multipage ones often and convert them to pdf - then view them
All ok with Puppy 2 series
but I just tried it in Puppy 4

look at this:
cd /usr/bin
ls -l *tiff

I get
tiffdiff
tifficc
tifftopnm
............... and nothing more

Now thats a real pain as tiff2pdf if gone.

I tried a debian package - but they don't run- probably hate the kernel.

Anyone know where I can get all my tiff tools back to work with Puppy 4.0?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#10 Post by MU »

Paulski, can't you copy them from Puppy 2 to Puppy 4?
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#11 Post by muggins »

here are all the /usr/bin/tiff* files from pup2.16.
Attachments
tiff-binaries.tar.gz
(96.55 KiB) Downloaded 770 times

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

#12 Post by paulski »

Fantastic guys. Thanks MU and muggins!

That was the solution. Installed the binaries and all is rosy.

I did fear that the Pup 2.16 files could go haywire because of a different kernel. Nothing like that happened.

Now all my little scripts have come back to life. Mutlipage PDF's from multpage tifs here we go!

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#13 Post by jpeps »

MU wrote:Paulski, can't you copy them from Puppy 2 to Puppy 4?
Mark
I just attempted both tiff2pdf and tiffsplit after copying the binaries to Dingo, and got errors for both. The same tiff file sent to my xp computer opened fine.

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#14 Post by Aitch »


muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#15 Post by muggins »

jpeps,

it's hard to say what may be causing the errors, if you don't specify what they are! Otherwise, you can try Aitch's suggestion & try & use qfaxreader.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#16 Post by jpeps »

muggins wrote:jpeps,

it's hard to say what may be causing the errors, if you don't specify what they are! Otherwise, you can try Aitch's suggestion & try & use qfaxreader.
Sorry...I guess I was just responding to whether the binaries worked in Dingo rather than looking for a fix. When running tiff2pdf, it started out okay, and then got stuck:

Code: Select all

2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c
bash: 2c1: command not found
With tiffsplit I got:

Code: Select all

TIFFReadDirectory: Warning, /mnt/hda3/MyFiles/Psychology/Cred Pkt.tif: unknown field with tag 50221 (0xc42d) encountered.
Aitch wrote:there's also qfaxreader
Thanks...that works nicely (with qt3.3.8 ) :)

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#17 Post by muggins »

@jpeps,

I don't know what all those 2c1's mean, but I just rebooted into pup4, downloaded this tiff image, then successfully created a .pdf using tiff2pdf. I also had success using:

sam2p dscf1665.tiff dscf1665.pdf

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

#18 Post by paulski »

Jpeps,

what are you using on the command line for tiff2pdf.
You need to specifiy the options or it outputs garbage to the terminal

Example:
tiff2pdf -f -o outputfile.pdf inputfile.tif

Its not as intuitive as some may think.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#19 Post by jpeps »

paulski wrote:Jpeps,

what are you using on the command line for tiff2pdf.
You need to specifiy the options or it outputs garbage to the terminal

Example:
tiff2pdf -f -o outputfile.pdf inputfile.tif

Its not as intuitive as some may think.
Ah...that was the problem; you have to specify the output file or it spits out garbage, as you say. I still got a bunch of warnings, but the resulting pdf appears okay.

With tiffsplit, there are no options, so you can't specify an output file. I found the output files in /root.

Edit: This worked: tiffsplit file.tif output/dir
Maybe useage could be included in man tiffsplit ?

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#20 Post by charlie6 »

Hi all,
Tschuss Mark,
MU wrote:cd /usr/bin/
ls -1 tiff*

I get:
tiff2bw
tiff2pdf
tiff2ps
tiff2rgba
tiffcmp
tiffcp
tiffdiff
tiffdither
tiffdump
tiffgt
tifficc
tiffinfo
tiffmedian
tiffset
tiffsplit
tifftopnm

Mark
I had to use tiff2pdf this way to get a result:

Code: Select all

# tiff2pdf file.tiff -o file.pdf
# ls
# file.tiff  file.pdf
#
and NOT this

Code: Select all

# tiff2pdf -o file.tiff file.pdf
Cheers
Charlie

Post Reply