Welcome to GraphicForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

How to open and resave only tiff files from hdd to origina..

 
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10
   Graphic Forums (Home) -> Graphic Formats RSS
Related Topics:
Working with Large Tiff files (500 meg) - Hello, I recently purchased a Nikon Coolscan 8000. It does a great job on 2 1/4 size film. The files range from 420 meg to 600 meg. I have a Pentium 3, 1 Ghz and 512 meg of ram, and 500 gig of disks. These larger files (old files were 100 meg, tiff) are.

PDF files open in Photoshop - Ever since I installed my PDF files open in PhotoShop instead of the Acrobat Reader, as they normally did. What can I do to remedy this I would any help and comments. Best regards, Art

can open gifs but no jpg in pshop, why ? - Hi My friend can not open jpg's in He acme back from vacation, someone had been at his pc, now he can open gif, but not jpg in phosotop 7.1 It says, Detect and the program freezes, any ideas? cheers J

Odd Tiff color problem - Hello everyone, I've recently completed a logo for a friend and sent it to him as 2 photoshop files (rgb & cmyk) and a flattened tiff (cmyk). The photoshop cmyk file is fine, but (he claims) the tiff file is washed in a different lighter shade of col

TIFF vs. PSD formats - I that JPEG and than resaving causes a loss of pixels. My Camera does have a RAW mode but I shoot JPEG only. My question is, is there a in my files to TIFF vs. PSD before editing occurs? Does one provide a..
Next:  Graphic Formats: How to scale up a TIFF?  
Author Message
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 61) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: comp>graphics>apps>photoshop (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.

 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 62) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.

 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 63) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 64) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 65) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 66) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 67) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 68) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 69) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 70) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 71) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
toby

External


Since: Feb 24, 2005
Posts: 199



(Msg. 72) Posted: Fri Nov 03, 2006 5:11 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

toby wrote:
> foler wrote:
> > I have and MAc OS X. If you have solution for mac, tell me.
>
> Download and install libtiff utilities (to do recompression). You will
> need the Xcode tools installed (can be freely obtained from Apple web
> site, or your OS X CD). The following command is one line:
>
> $ curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz |tar
> -xzf -
> $ cd tiff-3.8.2
> $ ./configure
> $ make
> $ export PATH=$PATH:`pwd`/tools
>
> Now change directory to your original top level directory (change
> 'from' to your appropriate path):
>
> $ cd from
> $ ls -lR
> total 408
> -rw-r--r-- 1 toby toby 151932 Nov 3 18:14 rgb.tif
> drwxr-xr-x 4 toby toby 136 Nov 3 18:14 testdir
>
> ./testdir:
> total 1568
> -rw-r--r-- 1 toby toby 749428 Nov 3 18:14 cmyk.tif
>
> Batch the compression. Note this command is on one line.
>
> $ for F in `find . -name \*.tif` ; do D=../to/`dirname $F`; mkdir -p
> $D; echo $F; tiffcp -c lzw $F $D/`basename $F` ; done
> ./rgb.tif
> ./testdir/cmyk.tif
> $
>
> Recompressed files are left in a directory tree named 'to' in parent of
> current directory.

Re-reading your post I see you wanted an in-place recompression, this
can be done with a command similar to:

$ for F in `find . -name \*.tif` ; do tiffcp -c lzw $F /tmp/out.tif &&
mv /tmp/out.tif $F ; done

This also assumes that the TIFF files can be distinguished e.g. by
extension .tif. If this is not the case, different measures are needed
(checking Mac file type or for TIFF signature). This is still
scriptable.

In any case, take a backup before doing anything to your data on such a
large scale!

>
> $ ls -lR ../to
> total 232
> -rw-r--r-- 1 toby toby 117302 Nov 3 18:22 rgb.tif
> drwxr-xr-x 3 toby toby 102 Nov 3 18:22 testdir
>
> ../to/testdir:
> total 1408
> -rw-r--r-- 1 toby toby 720672 Nov 3 18:22 cmyk.tif
> $
>
> N.B. The above recipe will fail if your directory or file names have
> spaces in them.
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
foler

External


Since: Nov 01, 2006
Posts: 56



(Msg. 73) Posted: Fri Nov 03, 2006 6:38 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have and MAc OS X. If you have solution for mac, tell me.

"toby" <toby.DeleteThis@telegraphics.com.au> wrote in message
news:1162521141.595071.264240@e3g2000cwe.googlegroups.com...
>
> foler wrote:
>> "save as" write files on only one location. I need to write files to same
>> location where file is. On different folders and subfolders. Across
>> entire
>> tree on hdd.
>
> Good time to learn shell and the libtiff utilities Smile
>
> Oh, you're on Windows? D'oh!
>
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
foler

External


Since: Nov 01, 2006
Posts: 56



(Msg. 74) Posted: Fri Nov 03, 2006 6:38 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have and MAc OS X. If you have solution for mac, tell me.

"toby" <toby DeleteThis @telegraphics.com.au> wrote in message
news:1162521141.595071.264240@e3g2000cwe.googlegroups.com...
>
> foler wrote:
>> "save as" write files on only one location. I need to write files to same
>> location where file is. On different folders and subfolders. Across
>> entire
>> tree on hdd.
>
> Good time to learn shell and the libtiff utilities Smile
>
> Oh, you're on Windows? D'oh!
>
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
foler

External


Since: Nov 01, 2006
Posts: 56



(Msg. 75) Posted: Fri Nov 03, 2006 6:38 pm
Post subject: Re: How to open and resave only tiff files from hdd to original location... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have and MAc OS X. If you have solution for mac, tell me.

"toby" <toby DeleteThis @telegraphics.com.au> wrote in message
news:1162521141.595071.264240@e3g2000cwe.googlegroups.com...
>
> foler wrote:
>> "save as" write files on only one location. I need to write files to same
>> location where file is. On different folders and subfolders. Across
>> entire
>> tree on hdd.
>
> Good time to learn shell and the libtiff utilities Smile
>
> Oh, you're on Windows? D'oh!
>
 >> Stay informed about: How to open and resave only tiff files from hdd to origina.. 
Back to top
Login to vote
Display posts from previous:   
   Graphic Forums (Home) -> Graphic Formats All times are: Pacific Time (US & Canada) (change)
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Page 5 of 10

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]