Need to extract compression used in TIFF...

I would like to extract some information from a TIFF image. I would like to know the compression scheme used for each page. I don't really need to decode the TIFF image. I am specifically needing to know whether the TIFF file is using type 6 JPEG compression or type 7 JPEG-in-TIFF compression, and I need to know this information for each page (as some images seem to be "mixed").
Do I need JAI to do this? How would I do this?

Have you actually managed to use ImageIO to read any images yet? That's where you need to start. I'm not going to go over that now as it has been covered many times by many people.
Once you have an ImageReader object up and running, you'll need to know a little bit more about TIFF metadata. The tag number for the compression value is '259'. I don't know what values the compressions you're talking about will be, but you'll soon find out.
The following code should (hopefully) take the TIFF metadata out of the ImageReader and display what the image's compression is. The TIFF files I've been working with all have Group 4 Fax compression (the value this displays is just '4'), so I don't know how your results are going to look. Please let us know how you get on!
TIFFDirectory tiffDir = TIFFDirectory.createFromMetadata(reader.getImageMetadata(image));
TIFFField tf = tiffDir.getTIFFField(259);
TIFFTag tag = tf.getTag();
String compressionString = tf.getAsString(0);

Similar Messages

  • Extracting compressed file (zip) using PL/SQL

    Hi!
    Can anyone help me on how to extract data out of a compressed file(ZIP) using pl sql.
    Regards,
    dhekz

    user8707902 wrote:
    Can anyone help me on how to extract data out of a compressed file(ZIP) using pl sql.Bear in mind that the Lempel-Zif-Welch (LZW) compression used in zip files may still have patent issue relating to Unisys (not sure of the patent has expired now or what, it's always been somewhat confusing). So, if you already have software written to zip/unzip files you should use that as it should be licenced already. If you write your own LZW compression/decompression routine for use in any commercial software you may be required to register and submit royalties to Unisys for the privilege. As I say, I don't know the latest, so you may be ok, but it's something to be aware of and check out if you intend to write your own and it's for commercial reasons.

  • I have a 1.5 hour video of a concert from which I need to extract several 'tracks' as individual files, and then join them together in a new video. How do I do this using imovie?

    I have a 1.5 hour video of a concert from which I need to extract several 'tracks' as individual files, and then join them together in a new video. How do I do this using imovie?

    Adobe has made this process much simpler in recent years.
    No need to re-install any version earlier than the current version (CS6). All installers (upgrade or full) contain the full program code. The difference between full and upgrade is in the serial number.
    All you need do is download (link below) and install CS6, enter the CS6 upgrade serial number then enter the CS5 serial number (even if that too is an upgrade).
    Download CS6 products

  • I am struggling! Help! I need to move 3500 pics-in TIFF format in 175 folders and sub folders from my old PSE6, Windows XP to my new PSE13, Windows8.1. I have the PSE6 backed up on an external hard drive. What is the safe way to do this? Can anyone at Ado

    I am struggling! Help! I need to move 3500 pics-in TIFF format in 175 folders and sub folders from my old PSE6, Windows XP to my new PSE13, Windows8.1. I have the PSE6 backed up on an external hard drive. What is the safe way to do this? Can anyone at Adobe help me? Please?

    Use the Organizer backup & restore method, starting the restore from the TLY file. Probably best to use a custom location as the XP file structure will be different. See this link for further help:
    http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html

  • Need to extract data from R/3 to BI...

    Hi Friends,
    We need to extract some data available in the R/3 side to BI. I have written code in a function module which brings the output into the table e_t_data. now by attaching this function module, we created a Data source also. and then from BI side we replicated this Datasource. when tried to extract the data at BI from R/3, the process keeps on running with out bringing any data into BI. 
    Regarding this, i referred some docs in the forums. They say that we have to go with the approach followed in the FM 'RSAX_BIW_GET_DATA_SIMPLE'. I have done all the coding and settings similar to this function module. there is no syntax error and code produces the required output in e_t_data.In that FM they used some Select statement under the Open Cursor statement. But in our requirement, we are not selecting anything from Table. but we generate some data by some calculations and these data will be our output. If it is the case, can't we use that open cursor approach...?  we need to get the output data not by any select statement  but the output will be some internal table entries which are created by some calculations.
    Please suggest how to handle this. That would be very much helpful. <removed_by_moderator>
    Thanks in advance...
    Regards
    Ram
    Edited by: Julius Bussche on Jul 14, 2008 2:17 PM

    If you dont require any coding, then why dont you extract the data using the DB view/table or DB query. why you are using the FM.
    If you are using the FM, then for the first extraction call it will pass the selectoption data into ranges and in the next extraction call it will open the cursor based on the input data and fetch the data according to the package size per extraction call.
    For the generic data sources using the FM, the main thing lies in Fetching the data. If you study the standard FM 'RSAX_BIW_GET_DATA_SIMPLE', it fetches the data according to the number of records per extraction call.
    At the BI, entire data cant be picked up at once. it will pick packets of data.
    Regards
    Kannaiah

  • Disk needs to be repaired using the recovery HD

    Hello,
    I have received an error when running disk utility that says, "This disk needs to be repaired using the Recovery HD." This issue has popped on a couple of times on my previous MacBooks and maybe once on my current one.
    I have followed the suggested protocol (restart + command + r), and I choose disk utilities from the menu at start-up. I have both verified and repaired the disk (my HD), and disk utility says there are no errors; however, when I do a normal restart and run disk utilities again, I get the error message This disk needs to be repaired" again. I have cycled through this process and each time verify and repair disk on the Recovery HD indicates that nothing is wrong while verifying the disk on normal startup results in the same error. I computer has also been laggy.
    Any help would be appreciated.
    Thanks

    computer has also been laggy
    When you have the problem, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Need Xml Extraction help...not very urgent but only 6 Hrs left...

    Hi,
         I have an xml in a blob column and I need to extract the xml resultset into the (specified below) row/column format. So that i created a custom blob_to_clob function for this conversion and extracted below specified xml. Now I am executing the below specified queries for this xml to extract PanelSet, PanelId, Link values & attributes. but the problem is, I am not been able to relate the parent and child nodes or may be not able to identify, who belongs to who (parent--child). for e.g if I extract all link i.e status1, status2 etc of a particular Panel then i am not been able to access its (parent) Panel identification.please suggest me any solution.
    --query using
    --to extract PanelSet
    select
      extractValue(value(t),'/PanelSet/@name') panelset_name
      from
        (Select blob_to_clob(grp_menu) blobval
        from OUG
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/PanelSet'))) t
    --to extract PanelID
    select
      extractValue(value(t),'/PanelID/text()') panelid
      from
        (Select blob_to_clob(grp_menu) blobval
        from oug
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/PanelSet/PanelID'))) t
    --to extract Panel
    select
      extractValue(value(t),'/Panel/@id') Panel_id,
      extractValue(value(t),'/Panel/@name') Panelname
      from
        (Select blob_to_clob(grp_menu) blobval
        from oug
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/Panel'))) t
    --to extract link
    select
      extractValue(value(t),'/Link/@name') link_name,
      extractValue(value(t),'/Link/@type') link_type,
      extractValue(value(t),'/Link/text()') link_value 
      from
        (Select blob_to_clob(grp_menu) blobval
        from oug
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/Panel/Link'))) t
    --XML
    <Menus>
        <PanelSet name="0_Data center_A">
        <PanelID>1-1</PanelID>
        <PanelID>1-2</PanelID>
        <PanelID>1-3</PanelID>
        <PanelID>0-0</PanelID>
        <PanelID>1-6</PanelID>
        <PanelID>1-7</PanelID>
    </PanelSet>
       <PanelSet name="1_Data center_B">
          <PanelID>2-4</PanelID>
          <PanelID>2-5</PanelID>
          <PanelID>2-6</PanelID>
          <PanelID>0-0</PanelID>
          <PanelID>2-7</PanelID>
          <PanelID>2-8</PanelID>
    </PanelSet>
       <PanelSet name="2_Data center_C">
          <PanelID>3-2</PanelID>
          <PanelID>3-4</PanelID>
          <PanelID>0-0</PanelID>
          <PanelID>3-9</PanelID>
          <PanelID>3-10</PanelID>
          <PanelID>3-11</PanelID>
    </PanelSet>
          <Panel id="1-1" name="Sts">
            <Link name="status 1" type="Module">forbidden</Link>
            <Link name="status 2" type="Module">/forbidden</Link>
            <Link name="status 3" type="Module">/forbidden</Link>
            <Link name="status 4" type="Module">/forbidden</Link>
            <Link name="status 5" type="Module">/forbidden</Link>
          </Panel>
          <Panel id="1-2" name="Adm">
             <Link name="View 1" type="Module">forbidden</Link>
             <Link name="View 2" type="Module">forbidden</Link>
             <Link name="View 3" type="Module">forbidden</Link>
             <Link name="View 4" type="Module">forbidden</Link>
             <Link name="View 5" type="Module">forbidden</Link>
             <Link name="View 6" type="Module">forbidden</Link>
             <Link name="View 7" type="Module">forbidden</Link>
          </Panel>
          <Panel id="2-4" name="Position">
             <Link name="viewer 1" type="Module">forbidden</Link>
             <Link name="viewer 2" type="Module">forbidden</Link>
          </Panel>
          <Panel id="3-2" name="Administration">
             <Link name="inquiry 1" type="Module">forbidden</Link>
          </Panel>
          <Panel id="3-4" name="Reconciliation">
            <Link name="reconciliation 1" type="Module">forbidden</Link>
            <Link name="reconciliation 2" type="Module">forbidden</Link>
            <Link name="reconciliation 3" type="Module">forbidden</Link>
          </Panel> 
    </Menus>
    --Structure
                                       -----Link abc
                                      -     Link abd
                                  -      Link abe
                -----Panel ID 1-1-                
                  -     Panel ID 1-2--------link a--z (more than one)
    --------    -      Panel ID 1-3--------link N...
    |PanelSet 0|-
                  ------PanelID 2-1--------link N...
               -     PanelID 2-2--------link N...
    --------     -      PanelID 2-3--------link N...
    |PanelSet 1|-      
                  ------PanelID 3-1--------link N...
    --------     -      PanelID 3-2--------link N...
    |PanelSet 2|-       PanelID 3-1--------link N...
    --resultset required
    Panel_set         Panel_id          link
    0_Data center_A    1-1               Status1
    0_Data center_A    1-1               Status2
    0_Data center_A    1-1               Status3
    0_Data center_A    1-1               Status4
    0_Data center_A    1-1               Status5
    0_Data center_A    1-2               View 1
    0_Data center_A    1-2               View 2
    0_Data center_A    1-2               View 3
    0_Data center_A    1-2               View 4
    0_Data center_A    1-2               View 1
    1_Data center_B    2-4              viewer 1
    1_Data center_B    2-4              viewer 2Message was edited by:
    Sachin.Singh

    with t as
    (select xmltype(
    '... your xml here ...
    ') as xml from dual),
    panel_sets as ( select extractvalue(t2.column_value, '//*/@name') as panel_set,
                           extractvalue(t3.column_value, '//*'      ) as panel_id
                      from t, table(xmlsequence(extract(t.xml,           '//Menus/PanelSet'))) t2,
                              table(xmlsequence(extract(t2.column_value, '//*/PanelID'     ))) t3
        panels as ( select extractvalue(t2.column_value, '//*/@id'  ) as panel_id,
                           extractvalue(t3.column_value, '//*/@name') as link
                      from t, table(xmlsequence(extract(t.xml,           '//Menus/Panel'))) t2,
                              table(xmlsequence(extract(t2.column_value, '//*/Link'     ))) t3
    select s.panel_set, s.panel_id, p.link
      from panel_sets s, panels p
      where p.panel_id = s.panel_id
    PANEL_SET            PANEL_ID LINK
    0_Data center_A      1-1      status 1
    0_Data center_A      1-1      status 2
    0_Data center_A      1-1      status 3
    0_Data center_A      1-1      status 4
    0_Data center_A      1-1      status 5
    0_Data center_A      1-2      View 1
    0_Data center_A      1-2      View 2
    0_Data center_A      1-2      View 3
    0_Data center_A      1-2      View 4
    0_Data center_A      1-2      View 5
    0_Data center_A      1-2      View 6
    0_Data center_A      1-2      View 7
    1_Data center_B      2-4      viewer 1
    1_Data center_B      2-4      viewer 2
    2_Data center_C      3-2      inquiry 1
    2_Data center_C      3-4      reconciliation 1
    2_Data center_C      3-4      reconciliation 2
    2_Data center_C      3-4      reconciliation 3
    18 rows selected.

  • Need to extract data from a bricked hard drive - Failure ID ucx77t-69j7ms-mfpx1f-60vp03

    Hi My laptop (HP Pavilion Sleekbook 14, purchased in October 2012)  had gone slow recently, and finally its hard drive developed problems. At one point, it was so slow that it took a few minutes to sign off my user, so I shut it down manually while it was logging off. That was when it got really bad. Specifically, I reached the "Repairing disk errors. This may take over an hour to complete" screen. I left it to run for almost a full day and it didn't work. So, I rebooted the laptop and checked its diagnostics boot menu. It ran diagnostics on the hard drive, and on the whole laptop. There were no hardware problems or any codes for any individual components, except the hard drive. Specifically, it gave me the  Failure ID "ucx77t-69j7ms-mfpx1f-60vp03". I tried looking that up but I couldn't find anything. I wonder what that failure ID is for. Fortunately, I have a recovery drive, and most of the information on the laptop is backed up, but I need to extract some recently created data from my hard drive before I lose it by running recovery manager. I tried to back up some files, but the recovery drive could not reach any files to back up. I've also tried taking out the drive and putting it in an external hard drive enclosure then connecting it to another laptop, but it's telling me that the drive is only 25 GB when it's a 500 GB drive, and I still can't reach any files from C: inside. Can you help me figure out how to back up those files? They're only about 10-15 GB altogether, and I can easily fit them on another laptop.

    The failure id message means the hard drive has failed and will have to be replaced. The slowness and other problems were early warning signs of a failing hdd.If the drive can not be read using an external enclosure-not much hope. You might try one of the free tools to recover files-especially #2 which claims ability to recover lost partitions.Maybe it can see your C partition. http://pcsupport.about.com/od/filerecovery/tp/free-file-recovery-programs.htm

  • Need to extract Post to inspection stock field from material master

    Hi Guys,
    I need to extract the Post to insp.stock indicator from material master QM view for all FERT materials, i have tried with MARC table but no use. Is there any alternative way to download this from the material master?, kindly help me resolve this.
    Thanks
    S.Murali

    I got it from table QMAT.
    Thanks
    S.Murali

  • Need to extract PO's to send third party system

    Hi,
    I need to extract Purchase orders with the following criteria. I need to extract them based on vendor, Purchase Org and date of creation of PO
    1. PO with no GR and IR
    2. PO with no IR
    3. PO with no GR
    I need to extract the PO's as mentioned above as we need to send third party system. Please let me know is there any standard reports available to extract.

    Hi,
    Explore t-code ME2L.
    You can filter using the field Selection Parameters to identify those three segments:
    Selection Parameters:
    GUTSCHRIFT Invoices exist
    M-OFFEN Open target quantity
    R-ERLEDIGT No open invoices
    RECHNUNG Open invoices
    W-OFFEN Open target value
    WA351 Open issue quantity
    WA352 Issue quantity reversible
    WE101 Open goods receipt
    WE102 Goods receipt exists
    WE103 Open goods receipt
    WE104 GR blocked stock exists
    WE105 GR blocked stock exists
    WE106 Goods receipt exists
    WE161 Open goods receipt: returns
    WE162 GR exists: returns
    You can also use the column available in the layout to idenfity if the PO has an invoiced, if its pending, etc..
    Kind Regards,
    Mariano

  • Need to extract only file name from path.........

    Hi All,
    I have a parameter.This calls the function
    "CALL FUNCTION 'F4_FILENAME' to get the file from C drive.
    After selecting the file the path is displayed in the Parameter field.
    My problem is I need to extract only file name from the path.Please advice.
    Example : Prameter  id    C:\folder\file.xls  
    I shd extract only file.xls from the path.Please advice.

    Hi,
    Use the below logic:
    data: begin of itab,
               val    type  char20,
            end of itab.
    SPLIT  l_f_path  AT  '\'  INTO  TABLE itab.
    The last record of the internal table holds the file name.
    describe table itab lines l_f_lines.
    read itab index l_f_lines.
    l_f_filaname = itab-val.
    Hope this helps u.

  • Need to extract FS items and Hierachy (TRX CX17)

    Hi ALL,
    I need to extract a FS iten hierarchy from CX17 ,do u have any sample code which i can use as ref code for it?
    I have to display parents n child accordingly ..
    Let me knw ,as its on urgent basis.
    Thnks in advance

    Hi,
    Use FM: K_HIERARCHY_TABLES_READ
    to get all the nodes and leaves of the FS item. Check the table SETNODE AND SETLEAF for appropriate parameter values to be passed.
    Regards
    Subramanian

  • Extract data using javascript

    Hi,
    I have  created a BW reportin BeX WAD. At viewtime (in internet explorer), I'm extracting some data from a table in the report with some custom javascript (I'm using HTML DOM).
    Is there any way to directly query the data provider of the table (in javascript) to get the needed data? Because using DOM is not that elegant and not that easy to generalize (the number of rows varies depending on the number of characteristic values etc).
    Thanks,
    Jeroen

    Hi,
    If you are profficient with ASP and Multi Dimensional Expressions you will be able to accomplish your goal. See:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3ff37884-0401-0010-3c96-ab0e2f383c5a
    If you stick to Javascript then AJAX can be your solution (although a not trivial one...) See Raja's blog:
    /people/durairaj.athavanraja/blog/2006/02/06/read-sap-table-data-from-bw-webtemplate-ajax-in-bw-webtemplate
    Good Luck,
    Xibi

  • Keyboard won't work and need to extract contacts from computer without unlocking phone.

    Hey there!
    My pearl's keyboard just recently broke and I need to extract my contacts to transfer to a new phone. Unfortunately I am unable to unlock the phone to access the files because of the keyboard. Is there any way to unlock the phone using the computers keyboard or simply bypass the password? Any help is greatly appreciated, thanks!
    I am on the Wind network
    Pearl 9100 w/20 key QWERTY board
    I've had the phone for approx. 2 years
    possible water damage to keyboard
    screen/battery work, tried rebooting.
    computer won't recognize device until unlocked

    Hi finnmccord77,
    Welcome to the Support Community!
    When you connect your BlackBerry® Pearl™ 9100 smartphone to the computer, you should be prompted to enter your security password. You should be able to backup or synchronize the contacts your BlackBerry® Pearl™ 9100 smartphone using the BlackBerry® Desktop Software.
    This KB article should help you set up synchronization with an email client on your computer. "How to setup organizer data synchronization using BlackBerry Desktop Software" http://bbry.lv/L2aRTL
    If you are switching to another BlackBerry® smartphone, you can use the backup and restore tool in the BlackBerry® Desktop Software to backup your contacts and restore them to your new BlackBerry® smartphone. This KB article may help. "How to back up BlackBerry smartphone data using BlackBerry Desktop Software for Windows" http://bbry.lv/IWfPl0
    Hope this helps.
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Can't burn dvd that plays on dvd player. seems to be in file format. do i need extra software? using iMovie and final cut pro trail..both same result. have macbook pro 2012

    can't burn dvd that plays on dvd player. seems to be in file format. do i need extra software? using iMovie and final cut pro trail..both same result. have macbook pro 2012

    NStrange wrote:
    ... confused about which video format(s) to use (e.g.: SWF, MPEG4, etc.), and whether or not I should use 3rd party compression software (e.g.: Sorenson Squeeze, Compression Master, etc.) along with / in addition to Final Cut Express (among other similar issues)...
    FC/e is based upon the Quicktime-engine; so, on 'Export using QT', you'll get all codecs & settings.
    but which one..
    due to sheer popularity, YouTube became a 'standard' - I'm happy with the convenience, YT and the 'embed'-code offers - excellent quality, automatic adjusted to the watchers connection&hardware.
    my export settings are 720p, h264, 6MBit/sec - gives a - imho! - superb quality.
    (example of a 'screen-test' from my latest project CLICK )
    for creating so-called 'flash video'/.flv, you need 3rd party apps.
    Sorenson Squeeze is more of an pro-tool, .. you need some background knowledge to get noticeable 'better' quality.
    .. and the question is: are you willing to pay $.$$$ for that 0.x% more quality .. ? does your source offers such a 101% quality, which needs such affords?
    if bandwidth is an issue, because you're hosting on your own servers, consider the free codec xh264, you can install as a free QT-plug-in.. with low or super-low bitrates, it offers a superior quality compared to h264 ...

Maybe you are looking for

  • This is for Verizon Customer Service: Is there an estimated date for the 8.1 Denim update for Windows Phones?

    Will Cyan be rolled out for the Icon, or should we expect to wait until Denim is supposed to be rolled out around October << Moderation discussion removed to comply with Verizon Wireless Terms of Service >>  This is a very specific question and Veriz

  • Original and modified file folders in iPhoto

    I just loaded photos into iPhoto and the files populated in both the Originals and Modified file folders in iPhoto.  None of these photos have been modified.  I'm concerned with conserving disk space on my Mac.  How do I keep this from happening movi

  • Burning Issue: Weird

    OK: I have zero problems burning... except when I try to burn anything by the Yeah Yeah Yeahs. I've downloaded 3 songs and whenever I put those specific songs into a playlist, it freezes I Tunes when I try to burn it. I can't convert the songs either

  • Java Licensing changing installation number

    Hi all, we have changed contract and moved a Netweaver Java installation into a new server. The license check fails since the hardaware is changed. I have asked a new license key but it does not work since the system was installed in a different inst

  • Help with creating One Time informative Pop-up (Like a tool-tip) with CSS

    Hey guys,    My website has a nav bar on top that often times is missed by users unless I personally point it out. What I would like to do is have a litle tool tip like pop-up come on screen the first time someone visits the page, pointing to the nav