Open Tiff image failed with imageio package

I'm trying to open tiff files with javax.imageio.ImageReader. When openning the image file, "bad.TIF" with the following codes, I got an error. However, I can open the image with "Windows Picture and Fax Viewer" (WPFV). After I opened/saved as File "good.TIF" with WPFX, I can open the image with the progarm. Would someone please help? Thanks.
Error position is 2
java.lang.ArrayIndexOutOfBoundsException: 2012
     at com.sun.media.imageioimpl.plugins.tiff.TIFFFaxDecompressor.nextNBits(TIFFFaxDecompressor.java:1503)
     at com.sun.media.imageioimpl.plugins.tiff.TIFFFaxDecompressor.decodeNextScanline(TIFFFaxDecompressor.java:792)
     at com.sun.media.imageioimpl.plugins.tiff.TIFFFaxDecompressor.decodeT4(TIFFFaxDecompressor.java:1040)
     at com.sun.media.imageioimpl.plugins.tiff.TIFFFaxDecompressor.decodeRaw(TIFFFaxDecompressor.java:677)
     at com.sun.media.imageio.plugins.tiff.TIFFDecompressor.decode(TIFFDecompressor.java:2514)
     at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.decodeTile(TIFFImageReader.java:1137)
     at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1417)
     at javax.imageio.ImageReader.readAll(ImageReader.java:1050)
     at com.rxamerica.image.LoadTiff.main(LoadTiff.java:35)
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.ImageReader;
import javax.imageio.stream.ImageInputStream;
public class LoadTiff {
public static void main(String[] args)
String myDir = "./";
String testFile1 = myDir + "good.TIF";
String testFile2 = myDir + "bad.TIF";
int errorPos = 0;
ImageInputStream tiffStream = null;
ImageReader reader;
try {
reader = getReader("TIFF");
IIOImage tiffImage = null;
errorPos = 1;
File file = new File(testFile1);
tiffStream = ImageIO.createImageInputStream(file);
reader.setInput(tiffStream);
tiffImage = reader.readAll(0, reader.getDefaultReadParam());
errorPos = 2;
file = new File(testFile2);
tiffStream = ImageIO.createImageInputStream(file);
reader.setInput(tiffStream);
tiffImage = reader.readAll(0, reader.getDefaultReadParam());
catch (Exception e) {
System.out.println("Error position is " + errorPos);
e.printStackTrace();
public static ImageReader getReader(String suffix) throws IOException {
Iterator readers = ImageIO.getImageReadersBySuffix(suffix);
if (readers.hasNext())
return (ImageReader) readers.next();
else
throw new IOException("No readers for suffix: " + suffix);
}

Can you upload the bad tiff to an [image hosting site|http://www.imagehosting.com/]?
In general, when you set the input stream on a reader for a second time, it's a good idea to call reset.
errorPos = 2;
file = new File(testFile2);
tiffStream = ImageIO.createImageInputStream(file);
reader.reset();  <----- this line
reader.setInput(tiffStream);
tiffImage = reader.readAll(0, reader.getDefaultReadParam());I don't think that's the source of your problems though. You can add an IIOReadUpdateListener and a IIOReadWarningListener to the reader to see just how far it gets just before the exception is thrown. It may very well just be a badly saved tiff, or it could be a tiff image reader bug.
Edited by: Maxideon on Jan 19, 2009 7:07 PM
BTW, which version of JAI-ImageIO are you using?

Similar Messages

  • Cannot open Raw images taken with a Nikon 5200 in photoshop cc

    i am trying to open raw images taken with a Nikon 5200 in Photoshop cc but it says that camera model is not supported.  I looked at the Raw plugin version. It is 7.0.0.0.3. In support it said the minimum version is 7.3. I have downloaded the DNG Converter with camera raw 7.3. But it is still say i have version 7.0.0.0.3. Anyone know what to do?

    If the plug-in version is 7.something then you're running Photoshop CS6 since Photoshop CC ships with Camera Raw 8.0 out of the box. Latest version is Camera Raw 8.4.
    The Nikon D5200 has been supported since Camera Raw 7.3 so you can either update CS6 to Camera Raw 7.4 (In Photoshop CS6, Help > Updates) or use Photoshop CC which supports the D5200 out of the box.

  • Open Item Import fails with a process_flag = -999 or -888

    Problem description
    ============
    The Open Item Import fails with a process_flag = -999 in
    mtl_system_items_interface. This keeps the item from being imported into
    mtl_system_items. The process_flag has to be set back to 1 to have the row(s)
    reprocessed.
    Solution
    ======
    UPDATE mtl_system_items_interface
    set transaction_type='CREATE'
    where transaction_type=<'>
    Commit;
    Re run the Item Import it should go fine.
    Regards,
    Mehboob

    Hi,
    It looks like you have posted the same in below thread.
    Item Import completed with Process_Flag = 31, 41 and 42
    Any way if you have problem you can refer to below metalink notes.
    NOTE:103869.1 - Item Attribute vs Template Attributes Using IOI
    NOTE:106812.1 - Instructions for Running Item Open Import (IOI) Including Historical Revision Da
    NOTE:109628.1 - FAQ for Item Import
    NOTE:268968.1 - Understanding Item Import and Debugging Problems with Item Import
    NOTE:458544.1 - Inventory Item Open Interface ITAR Template
    NOTE:52746.1 - A Guideline to IOI Error Messages and Solutions
    Thanks
    Vishalaksha

  • Imaging failed with error 175

    We recently updated all of our servers with the new ZDM7NWSP1IR4HP1. We distributed the zenworks update through our zenworks for servers so we downloaded the CPK files. Updates were successful except now we have lost our reimage on next boot functionality on all servers. We get the message "imaging failed with error 175". We downloaded and tried the Zenworks Imaging Driver Update for October 2009. We tried this on one server in our environment that we use for testing purposes. This did not fix the problem.
    Can anyone help us? We don't see anything additional on the support site to patch.

    Originally Posted by spond
    Busytech710,
    could you please
    1) boot to ZENworks maintenance mode
    2) export DEVELOPER_LOG=a
    3) perform the imaging task and send me the imglog
    spond at novell dot com
    Shaun Pond
    I will be glad to try this and send you the log. I too tried installing the service pack with winsetup.exe and found that also worked for me as far as making image on next boot work. We really want the CPK method to work as we have so many servers and we were able to update them all in one day versus weeks using winsetup.exe. I'll respond back with info you need as soon as possible.

  • Zenworks imaging failed with error:200

    We just got new PC's and when I try to use ZENworks 6.5 to put my image
    on them, I get "ZENworks imaging failed with error:200"
    I have not been able to find anything in the KB for this.
    The PCs are Gateway E-4500D, ZENworks is 6.5 running on NetWare 6.5 SP 4a.
    TIA

    We are on SP2 and getting the error code: 200 error. The PC's are DC5100
    Small form factor. They have SATA drives. Some work and some get this
    error, reboot and then start the image restore, but never gets to the
    Pre-Formatting. Any ideas?
    > On Tue, 18 Jul 2006 14:32:30 GMT, Rhonda Richardson wrote:
    >
    > > No. We are on SP1. Sorry, forgot that part.
    >
    > could you try sp2?
    > --
    >
    > If you have already compiled drivers or have linux.2 please put them on
    > http://forge.novell.com/modules/xfmo...ect/?zfdimgdrv
    > Live BootCd and USB Disk from Mike Charles
    > http://forge.novell.com/modules/xfmod/project/?imagingx
    > eZie http://forge.novell.com/modules/xfmod/project/?ezie
    >
    > Marcus Breiden
    >
    > If you are asked to email me information please change -- to - in my e-mail
    > address.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • Creating Open Directory Replica fails with Server Admin Error Value 1127

    Hallo,
    I have seen a lot of similar threads here and they were helpful up to a certain point, but in the end, they did not solve my problem.
    Currently, it comes down to this. The Server Admin Error message ist really meaningless and I could not find a single for the error value on the whole wide web. As such, I switched to the command line versions of the tools involved to geht more meaningful results. It worked. Specifically, creating a replica of an openldap master means using slapconfig.
    When executing
    slapconfig -createreplica master.ourdomain.com diradmin
    as root on the prospective replica machine, I get the following error message:
    ssh command failed with status 127
    That command is not allowed with the root account via public key authentication.
    That makes perfect sense to me, but how is it meant to work then?
    Executing slapconfig as admin tells me that this tool is to be executed as root. On the other hand, root login via ssh is not allowed in Mac OS X by default, which seems fine to me. I even changed /etc/sshd_config on the Open Directory Master machine to "PermitRootLogin yes". However, neither reloading ssh using launchctl nor restarting the whole server made this setting operational. Trying to login from command line as root still tells me:
    root login is not permitted to this machine via public key authentication.
    While this is the current state where I need help urgently, I changed some other things before. I tell about to exclude these issues as possible reason of failure. I got this message for quite a while:
    Replica Setup failed : This machine does not have a valid computer name
    I was sure, this machine meant the target machine, the open directory master, because the domain had changed there once before I had taken over responsibility as an admin in this environment. And in fact, changeip disguised an issue there. The command proposed by changeip to fix the situation did not seem appropriate because this machine is multihomed with a public and a private IP adress. Proper name resolution is available for both interfaces including reverse lookup. I dont like this setup, but it was the only way to get mail service running smoothly. Running changeip on the machine itself using these arguments
    changeip /LDAPv3/127.0.0.1 internalIP internalIP old.ours.com current.ours.com
    reported success in updating password server, open directory, both interfaces, hostconfig (which in fact did not change) and samba. It reported an issue with kadmin which is related to Kerberos (we dont use Kerberos yet).
    Changing the hostname of the server using changeip did not solve the issue. I then found the hint to check with scutil. This showed that the Hostname was not set on the prospective replica machine. (A question aside: in how many place is the hostname stored? The traditional /etc/hostname has gone, but seems to be replaces with several other configuration files and databases. I cant see this as an advantage). Setting the hostname using scutil worked fine. However, it did not solve the problem either. At least, slapconfig now started to complain about not being able to log in as root instead of failing from the start.
    I also checked all log files on bboth machines that might have to do with openldap, as there are /var/log/slapd.log, /var/log/system.log and /Library/Log/slapconfig.log. I also checked the log of th layer on top of openldap which is /Library/Log/DirectoryService.server.log. None of them revealed anything noticeable beside a lot of of entries that I have googled in the last few hours and which all dont seem to be associated with the problem in question.
    I will take a break now, but I have to fix this until tomorrow and I hope to get the ultimate hint from you, dear reader.
    Thanks and bye, Christian Völker

    ssh command failed with status 127
    That command is not allowed with the root account via public key authentication.
    Initial OD replication takes place via 'ssh'. If you have 'sshd' configured on the OD Master to authenticate with public keys then the OD replica will not be able to communicate with the OD Master via 'ssh'. You must configure the OD Master to use 'ssh' with password authentication and root login enabled.
    Demote the replica back to standalone. Stop any services that you may have running on the primary network interface. Then stop any services that you may have running on the secondary network interface. In the 'Network' System Prefpane remove the IP number from the secondary interface then deactivate the secondary network interface.
    Assign the private IP address and hostname that you wish to use for the replica to the primary network interface. Assign the 'public' IP number to the secondary interface. Check the DNS to see that the IP address and hostname for the primary network interface resolve both forward and reverse for the hostname of the replica that you have chosen. If it does not, fix your DNS before proceeding.
    In the 'Sharing' System Prefpane, change the name of the machine to the hostname (server.domain.tld) of the replica that you have chosen. Then use 'changeip -checkhostname' to see if the IP/hostname matches. Fix it if it doesn't.
    Then configure the /etc/sshd_config file on the OD master like this:
    \# Authentication:
    PermitRootLogin yes
    PasswordAuthentication yes
    PubkeyAuthentication no
    and the /etc/ssh_config file on the OD replica like this:
    PasswordAuthentication yes
    PubkeyAuthentication no
    Then from the OD replica as the 'root' user issue:
    slapconfig -createreplica <ODMasterIPorFQDN> <diradmin user>
    Make sure that the 'diradmin' user's password contains only alpha-numeric characters -no 'option-characters' or symbols, change it first if it does. Once the process completes, reactivate the secondary interface for the 'public' IP and check the configuration of services that will be using that IP, then start your other services. Secure the 'ssh' service on both machines to disable password authentication and 'root' logins.

  • Image Capture Boot Image Fails with 0xc000000f

    I am trying to capture a Windows 8.1 Enterprise (with Update) x64 installation using WDS, but the Capture Image fails to load. I used the boot.wim from the Windows Server 2012 R2 (with Update) ISO to create a boot image in WDS and then a capture image from
    it. After I press F12 and the progress bar finishes the following message appears:
    This only happens when I boot the capture image - the original boot image that I imported in WDS boots normally. I also tried with the Windows 8.1 (with Update) boot.wim, but the issue reoccurs. This is a Hyper-V VM on Windows Server
    2012. Is this a problem with the recent update?

    Hi,
    We’re currently experiencing exactly the same issue. Also a fully-updated Server 2012R2 (with the recent KB2919355 update) machine.
    So far, I found two other posts with exactly the same issue:
    1) http://wp.secretnest.info/?p=1474
    2)
    http://community.spiceworks.com/topic/472581-wds-capture-image-winload-exe-corrupt-or-missing
    According to these posts it seems like the issue occurs after the first time a capture image based upon a Windows 8.1 or Server2012R2 boot.wim is created.
    What I’ve tried so far is removing the server role, deleting the WDS store, rebooting the server and start over with a Windows 7 boot.wim. The normal boot.wim starts ok, but the created capture image doesn’t.
    So the process of creating the capture boot image did ‘something’ in a way the new boot.wim differences from the old boot.wim. To find out what, I first mounted the new .wim file to see if winload.exe is actually there – it is both in
    system32 as well as systen32\boot. So my second guess was that the Windows Boot Manager cannot find the windows loader, because of an incorrect declaration of disks in the BCD store.
    I used BCDEDIT to show the differences between the working and non-working boot images:
    Windows Boot Loader
    identifier {1d214c07-6892-401c-a762-04647ad38560}
    device ramdisk=[boot]\Boot\x64\Images\boot.wim,{b321afc0-8a23-4
    961-85dd-a10f3c46473f}
    description Windows 7 Boot Image
    osdevice ramdisk=[boot]\Boot\x64\Images\boot.wim,{68d9e51c-a129-4
    ee1-9725-2ab00a957daf}
    systemroot \WINDOWS
    detecthal Yes
    winpe Yes
    Device options
    identifier {b321afc0-8a23-4961-85dd-a10f3c46473f}
    inherit {68d9e51c-a129-4ee1-9725-2ab00a957daf}
    ramdiskmcenabled No
    ramdiskmctftpfallback Yes
    -- Second - Non Working disk --
    Windows Boot Loader
    identifier {872352a0-0ad9-46f6-8612-1aed71ea8534}
    device ramdisk=[boot]\Boot\x64\Images\boot-win7-capture.wim,{7a
    b86a3a-3651-4f50-a748-34f3e784158c}
    description Windows 7 Capture
    osdevice ramdisk=[boot]\Boot\x64\Images\boot-win7-capture.wim,{68
    d9e51c-a129-4ee1-9725-2ab00a957daf}
    systemroot \WINDOWS
    detecthal Yes
    winpe Yes
    Device options
    identifier {7ab86a3a-3651-4f50-a748-34f3e784158c}
    inherit {68d9e51c-a129-4ee1-9725-2ab00a957daf}
    ramdiskmcenabled No
    ramdiskmctftpfallback Yes
    So the ID for the osdevice is the same, and only the device is different, but mentioned correctly under Device options (as far as my knowledge goes in this subject). I hope there will be a solution anytime soon.

  • TIFF images, Working with Color Palette.

    I would like to read in a tiff image, change some of the color values and then write out the new file. Is this possible?
    Thanks.

    Ah dude, that's super-easy.
    In JAI there is a call to convert to grayscale, but here is how to remove the red from every pixel in an image:
    Assuming you have a BufferedImage called image...
    // get image dimensions
    int width = image.getWidth();
    int height = image.getHeight();
    // create pixel array
    int pixels = new int[width*height];
    // copy data from image into pixel array
    pixels = image.getRGB(0,0,width,height,pixels,0,width);
    // remove red from entire image
        for (int x=0; x<width; x++)
          for (int y=0; y<height; y++)
            int index = x+y*width;
            int pixel = pixels[index];
            int red   = (pixel & 0xff0000) >> 16; // don't really need this, but whatever
            int green = (pixel & 0xff00)   >> 8;
            int blue  = (pixel & 0xff);
            // Check intensity of pixel for each band
            if (red > tolerance || green > tolerance || blue > tolerance)
              // rebuild pixel with only green and blue values
              pixels[x+y*width] = ( 0xff000000 | (0 << 16) | (green << 8) | blue);
        }There you go!
    Who's ya daddy?

  • Solaris boot images fail with bad magic number

    hi guys, have had Solaris on boxes for allmost 10 years. I have never installed sol10, and I have a problem
    1. I download the zip file, then use winrar to unzip them..
    2. burt the image with nero 7
    when my SunBlade 1000 comes up I do the Stop-A, and from the Ok promt
    I do boot cdrom
    this fails with "bad magic number" I have redown loaded it and reburnt it with nero reinstalled
    and also changed out the DVD on SunBlade
    3 I found a copy of Solaris 8 and the I got back a 'bitch' where is Solaris 9 so, most likely the drive is OK
    HELP
    Cris Harrison

    Hello Cris,
    unfortunately I don't understand your last sentence !
    I found a copy of Solaris 8 and the I got back a '*****' where is Solaris 9 so, most likely the drive is OK
    If this was a Solaris 8 (7/01 or later) DVD that did successfully boot, your DVD drive firmware (assuming that this is the Sun Toshiba SD-M1401) is up-to-date. If the DVD drive has firmware 1007, an update to 1009 is required to boot from DVD. otherwise you won't be able to boot from DVD (boot from CD works and a DVD can be automounted/mounted).
    Partial output of probe-scsi
    Before update:
    Unit 0 Removable Read Only device TOSHIBA DVD-ROM SD-M14011007
    After update:
    Unit 0 Removable Read Only device TOSHIBA DVD-ROM SD-M14011009
    [*Patch 111649-04 - Toshiba DVD 1401 firmware update*|http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&queryKey5=111649&toDocument=yes]
    when my SunBlade 1000 comes up I do the Stop-A, and from the Ok promt ...
    Instead of trying to directly boot, disable auto-boot and retry after a clean power-on.
    Break with Stop-A
    setenv auto-boot? false
    reset-all
    boot cdrom
    Michael

  • When editing .ccp file fails with "corrupted package" error

    Hello.
    I usually créate packages on my local computer, and then copy them to a network drive, for deployment.
    However when I try to edit a package I made, the creative cloud packager fails with a "Selected package is corrupt" message. I tried to map the folder to a network drive, or copy to a local folder but it doesn't work.
    It seems to only work if I copy it in the very same folder where it was created. However, I have a few packages of which i don't knwo the original location.
    What can I do to edit this packages?
    Thanks.

    Hi alisterblack.. Thanks for your response.
    But, how can I know the cause of "selected package  is corrupt"..? I never touch that .ccp file.
    I downloaded the full package some months ago in one virtual machine which already been deleted. I got the full package of 13 GB then I moved them to my file server and now it is successful to be deployed with 2,5 hours to complete each computer. So this full package is valid, however the time to deploy is unacceptable and I need to edit the package. How come your package manager refer to cache instead of the full package that is already downloaded completely?
    Can you make your Adobe Package Manager has ability to edit my downloaded package? Or alternatively, is there any other method to deploy/install the selected Adobe program one by one?
    I hope you know how it is
    -when it takes 2,5 hours to complete the installation to a client computer with Core i7, 16 GB of RAM
    -when it takes the whole night (more than 7 hours) to download some gigabytes of your packaged while my internet connection is 80 Mbps
    -when I re-download to re-build the package, the chance to success is 50% with the same error message [ERROR] AdobePackageBuilder - Failed to unzip the file blablabla..
    Thank you for your understanding.

  • Opening tiff image file and finding pixel values at each point

    I want to open a tiff image file using java.Than i want to find out the pixel values at each point.Also if possible red,green and blue values.
    please mail me answer or code if possible on mail id:
    [email protected]

    Use Java Advanced Imaging to open the Tiff. There is
    a tutorial on it. Look to the left for tutorials, look
    for JAI, do what it says.
    For getting the pixels, do this:
    Use a PixelGrabber to get pixels in array:
    int[] pixels = new int[w * h];
    PixelGrabber pg = new PixelGrabber(img, x, y, w, h, pixels, 0, w);
    pg.grabPixels();
    Use a MouseMotionListner for
    mouseMoved(MouseEvent moueEvent)
    pixel = pixels[mouseEvent.getX() + (mouseEvent.getY()*width)]
    int alpha = (pixel >> 24) & 0xff;
    int red = (pixel >> 16) & 0xff;
    int green = (pixel >> 8) & 0xff;
    int blue = (pixel ) & 0xff;
    Look up the API for MouseMotionListener, PixelGrabber, etc...

  • Open random image file with automator

    I would like to open a random file from a folder in Preview.
    I've looked into the finder and photo presets but can't figure a way out. Is there a script I can run or have I just missed something?
    What I'm basically looking to do is for Automator to look within a folder and open an image in it's default application.

    Hi Niel,
    I've still got the same issue.

  • Adding private IFD and IFD pointer to TIFF image metadata with jai-imageio

    Hi,
    I searched on the Internet for the answer but I was only able to find this post from the old forum/mailing list:
    http://www.java.net/node/698039
    The question in the post went unanswered and I am in a very similar situation now. To re-iterate the questions:
    * How to merge the metadata of the private IFD into the root IFD?
    * What to populate for the offset parameter in the private IFD pointer tag (the parent tag)?
    I am modeling it after the EXIF tag sets, very similar to what is in the above link.
    Any help would be greatly appreciated ...
    Thanks,
    Dennis

    Hi Jim,
    Thank you for posting in the MSDN forum.
    You know that this forum is to discuss the VS IDE issue,
    I am afraid that the issue is out of support of
    Visual Studio General Forum
    To help you find the correct forum, would you mind letting us know more information about this issue? Which kind of app do you want to develop, a WPF app or others?
    If it is the WPF app, maybe this forum would be better for it:     
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Disk Utility: Create image fails with input/output error

    Starting to create an image and saving it into an external hard drive (MacOS extended Journaled).
    It starts after less than 60 secs it comes out with an error : Failed to create the image (input/output error)

    If you don't mind I'd like to discourage you from backing up a drive onto a disc image file no matter where you plan to save it. Disc image files can be very problematical when it comes to trying to restore the backup. Furthermore, you cannot boot from a disc image. If the disc image file becomes corrupted then you have no backup.
    I would like to propose that you think about a better way to backup your drive. You can clone the drive to your backup drive. It's easy to do using Disk Utility's Restore feature. A clone backup is not only bootable but you have direct access to all the files on the backup.
    In order to make a bootable clone open Disk Utility. Select Disk Utility Help from the Help menu. Search for +duplicating a disk+. Click on "Duplicating a disk" at the top of the list of articles. Follow the directions.

  • How to Render a TIFF image sequence with After Effects or Premiere

    So I shot a timelapse in RAW using my D5200.  Developed the images, imported into after effects to make a composition at 1080p 24fps, the clip is 15 seconds long.  Then I rendered the clips a few ways and none of them are what I want:
    I used the H.264 first, its just pixelated and blocky, doesn't retain a smooth resolution. H.264 output an MP4 that was 6.5 MB.
    Then I tried lossless and it output an AVI which is awesome resolution but the file is 2 gigs! Not even VLC media player will play it smoothly without buffering.
    Last I tried H.264 BluRay which output an M4V file which is 45 MB and I can't get it to play.
    So now I'm here asking you all what the way to go is.  When I download films, I will aim for a 1-2 gig 720p or 1080p file on roughly 2hr films.  The resolution is great, the audio is great and the file like I said is only 1.5gigs average.  So what are the rendering settings I should be using to get a file like this? Should I be importing it into Premiere Pro first or what?
    -Thanks
    Bruno
    For Reference, here was my workflow:
    I generally followed an Adorama Rich Harrington Time-Lapse youtube video on workflow which was:
    Developed the Raw files in Camera Raw
    Used the Image Processor to create the Tif files
    Imported into After Effects as a TIF sequence
    Interpreted the sequence as 24fps
    Changed the Composition settings to 1080p 24fps
    Then did the rendering as detailed above

    1. You don't need to export your TIFF sequence so as to import it into After Effects, you can import RAW image sequence into After Effects directly. Camera RAW will start automatically on importing. What is more, you will be able to change your Camera RAW settings at any time you want inside your AE project: in Project panel select your RAW image sequence, right-click, choose Interpret Footage -> Main... In the dialog box click More Options... button (at bottom left), and Camera RAW opens.
    2. Do NOT export to H.264 out of After Effects directly. If you need to export your composition to H.264, export it out of Adobe Media Encoder. Start from HDTV preset. If your goal is to upload your media file on e.g. YouTube, done. If you want to play it back on your computer, but your mediaplayer can't playback it in real time, start to decrease bitrate settings. Keep in mind that modern AVCHD cameras shoot with 28 Mbps, first AVCHD camcorders were shooting with 17 Mbps, YouTube preset in Adobe Media Encoder sets bitrate to 10 Mbps, Vimeo preset - to 8 Mbps.
    Choose VBR, 2 Pass so as to benefit from better quality out of smaller file size.
    See this The Video Road blogpost on Understanding Colour Processing and benefits of Render at Maximum Depth option.
    3. If you're planning to use your After Effects composition in Premiere Pro project, you can use Adobe Dynamic Link. If your After Effects composition is quite complex, render a Digital Intermediate out of After Effects and import it into Premiere Pro. See this discissuon in AE Forum on some production codecs comparison.
    P.S. See also this FAQ: What are the best export settings? entry.

Maybe you are looking for