Copy link to clipboard
Copied
My PLATFORM:Macintosh
SCRIPTING LANGUAGE:I only know Applescript
Photoshop version: CS5
I need to look at a large amount of tiffs and determine if any of them were saved with the option in the second dialog box that comes up where it asks if you want to save the pixel order as interleaved or by channel.
I need all of them to be interleaved and some are not.
I would rather not open every image and resave. If I could run a script that would identify the culprits by changing their label to red for instance then I could deal with just those files.
If there was a way I could look at them without opening in photoshop that would be better but even opening in photoshop I get I don't seem to see the pixel order info anywhere.
My PLATFORM is
Macintosh
SCRIPTING LANGUAGE
I only know Applescript
Photoshop version CS5
You can also use Exiftool to sort the files for you by tag
exiftool "-directory<%d/tif/${planarconfiguration}" c:\temp -ext tif
That command line will sort all the tif files in c:\temp into a subfolder named tif with each tag type sorted into folders by tag. You could then run a batch action of the chunky folder to resave as interleaved.
Copy link to clipboard
Copied
Download exiftool.
Save a tiff file twice: one interlaced, one per channel.
Run exiftool on each file and run diff on the output. This will tell you what to look for in the exif data if it's there.
From here, you can either use XMPScript in PSJS to find the files you want or you can use exiftool itself.
Copy link to clipboard
Copied
This exiftool command line
exiftool -p '$filename $planarconfiguration' -f -q *.tif
will print out the name of the file plus 'Planar' for per channel and 'Chunky' for interleaved.
Copy link to clipboard
Copied
Thanks yes I did narrow it down to Planar or Chunky! I will try this
Copy link to clipboard
Copied
You can also use Exiftool to sort the files for you by tag
exiftool "-directory<%d/tif/${planarconfiguration}" c:\temp -ext tif
That command line will sort all the tif files in c:\temp into a subfolder named tif with each tag type sorted into folders by tag. You could then run a batch action of the chunky folder to resave as interleaved.
Copy link to clipboard
Copied
Thanx all I got it now!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now