Results 1 to 5 of 5

Thread: Woking with tiff Files

  1. #1
    Join Date
    Apr 2008
    Posts
    20
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Woking with tiff Files

    Hi,

    I want to get some of the Tags in a given Tiff file,
    Please give me an idea on how can i achieve that.....

    Thanks,
    knrcse

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: Woking with tiff Files

    try with libtiff...
    or, if you don't want any 3rd party deps, build your own parser with qt. it is not that hard, jujst take the tiff spec and use a QDataStream to take chunks out and interpret them
    I estimate 8 hours for this.

    Good Luck!

  3. #3
    Join Date
    Apr 2008
    Posts
    20
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Thumbs down Re: Woking with tiff Files

    Hi,
    Thanks for ur quick responce..
    I started trying with libtiff.
    i downloaded Tiff3.8.2 and done the configuration...
    the libtiff.dylib which i got is working with PPC only..
    so i downloaded Tiff in intel machine and configured and got the libtiff.dylib for intel architecure

    then i combined the above two using LIPO tool to get the Universal dylib..

    eventhough its giving the fallowing errors

    ---------------------------------------------------------
    /Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiff.3.dylib malformed object (unknown load command 8)
    /Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiff.dylib malformed object (unknown load command 8)
    /Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiff.dylib malformed object (unknown load command 8)
    /Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiffxx.3.dylib malformed object (unknown load command 8)
    /Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiffxx.dylib malformed object (unknown load command 8)
    /Developer/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: for architecture i386 object: /Users/administrator/Desktop/Universal/libtiffxx.dylib malformed object (unknown load command 8)
    --------------------------------------------------------


    is ther any wrong in the procedure...


    Thanks,
    knrcse

  4. #4
    Join Date
    May 2006
    Posts
    788
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 48 Times in 46 Posts

    Default Re: Woking with tiff Files

    Have you -qt-gif -qt-libpng -qt-libjpeg -qt-libtiff on configure cache? QT...

    I work on a mini mac PPC Tiger i have install the latest xcode all sdk
    and i configure qt4.4 on two dir

    /Developer/qt && /Developer/qts

    the qts ist -static universal to fast make the bundle dir
    and qt no universal to work

    i must only swap dir on profile file...

    if Qt4.4 has included lib tif why not use it...

    Your Lipo error only display it that you use not all lib as universal!
    only one lib from all is only PPC , and you have a build error...

  5. #5
    Join Date
    Apr 2008
    Posts
    20
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Re: Woking with tiff Files

    Hi ,
    I am trying with 3rd party library Tiff 3.8.2 .
    I had build Universal binary for libTiff.dylib. which is not working.
    TIFFOpen() itself failing by giving fallowing message..

    ----------------------------
    Not a TIFF file, bad version number 10752
    ----------------------------

    i don't know wher the things are going wrong..

    Pls let me know, if any one knows about the above problem...


    Thanks ,
    knrcse

Similar Threads

  1. Replies: 5
    Last Post: 22nd September 2006, 08:04
  2. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.