Finding LZW files

J
Posted By
jcarlosc
Jul 20, 2004
Views
209
Replies
3
Status
Closed
Is there a way to find a or all files that have an Image Compression of LZW in File Browser in Photoshop?
What about Byte Order of IBM PC?

Thanks in advance

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

TT
Toby_Thain
Jul 23, 2004
File Browser probably can’t. But simple shell scripts in Terminal can do it:

Listing IBM PC byte order files in current directory (watch out for spaces or other special characters in file names):

for f in * ; do

( dd if=$f bs=1 count=2 2>/dev/null | grep II >/dev/null ) && echo $f

done

If you install the libtiff <http://www.libtiff.org/> tools you can list LZW compressed TIFFs:

for f in * ; do

( /usr/local/bin/tiffinfo $f 2>/dev/null | grep LZW >/dev/null ) && echo $f

done
LT
Laurentiu_Todie
Jul 23, 2004
Nice!
(whatever it is; it looks impressive)

I hope Juan Carlos III appreciates it : )
TT
Toby_Thain
Jul 24, 2004
If anyone’s going to try the above, here is a way to install the libtiff tools:

First, download the source archive from this page <http://dl.maptools.org/dl/libtiff/>: click the Download button next to "tiff-v3.6.1.tar.gz".

Put that file in your home directory.

Open a new Terminal window.

Execute the following commands (return after each one):

tar -xzf tiff-v3.6.1.tar.gz

cd tiff-v3.6.1

./configure

(When prompted, accept the default configuration by typing yes and return)

make

sudo make install

(enter your password at the prompt)

Now the TIFF library and tools have been installed and can be accessed from Terminal as /usr/local/bin/toolname. More information here <http://libtiff.org/tools.html>. The archive and the directory tiff-v3.6.1 are no longer needed and can be removed if desired.

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

Related Discussion Topics

Nice and short text about related topics in discussion sections