how to fix fz20 tiffs from 2 gigabyte cards
I just encountered the same problem with tiffs and a kind friend wrote me a Mac terminal script to fix it since I couldn't run Windows' Irfanview and do 'swap colors rgb to brg.' That still left the slices to move anyway.
I also emailed Lemke Graphic Converter and he put the fix in version 6.4.2. Open the program, go to file/convert and modify, navigate to the image in the left window, choose function/fix Lumix FZ20 2 gigabyte tifs in the dropdown and click go. I imagine if you select all the images and click go it will batch them.
Here's the terminal script. It needs to be put in a plain text document named 'fixtiff.sh'.
for FILE in "$@"
echo "Fixing file $FILE"
dd if=$FILE of=1 bs=16384 count=1
dd if=$FILE of=2 bs=16384 skip=2
cat 1 2 > temp/$FILE
rm 1 2
Then follow these instructions:
1. Make a NEW folder called "PhotosFix" or something friendly on your Desktop. If you name it something different, be sure and use the new name in each step below.
2. Put the "fixtiff.sh" file into the "PhotosFix" folder above.
3. COPY (copy, not move!) all your photos into the "PhotosFix" folder as well
4. Open Terminal. After each command below, hit enter. I've added space to make it clear which part is the UNIX command.
5. Type cd ~/Desktop/PhotosFix (changes to your home folder)
6. Type mkdir ~/Desktop/PhotosFix/temp (makes a TEMP folder - where the fixed files will be)
7. Type chmod +x fixtiff.sh (makes the script "run-able")
8. Type ls *.TIF > list.txt (makes a list of all your TIF files in list.txt)
On my computer I needed to do an 8b. Type bash (had a different shell than the creator)
9. Type for tiffimage in $(<./list.txt); do ./fixtiff.sh $tiffimage; done (does the conversion!)
Step #9 is where the work begins. What it does is run the fixtiff.sh script on every file in the list.txt list that is made in Step 8. The script itself takes the first part of the file, skips the 16k of garbage, and then adds the rest of the file.
Some important notes:
1. There cannot be ANY spaces in the file names. None at all!
2. Files MUST have a .TIF extension on them. (the ones you sent both did)
3. All the "fixed" images will be in your /Desktop/PhotosFix/temp folder
Was this reply helpful? (0) (0)