Changeset 3456 for trunk/utils


Ignore:
Timestamp:
12/10/07 13:08:45 (12 years ago)
Author:
melissa
Message:

Added convenience method to TiffTools for retrieving the image description from an IFD.

Location:
trunk/utils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils/EditTiff.java

    r3166 r3456  
    2626      if (ifd == null) System.out.println("Warning: first IFD is null!"); 
    2727      // extract TIFF comment from IFD 
    28       String ome = (String) 
    29         TiffTools.getIFDValue(ifd, TiffTools.IMAGE_DESCRIPTION); 
     28      String ome = TiffTools.getComment(ifd); 
    3029      System.out.println("[done]"); 
    3130      // display comment, and prompt for changes 
  • trunk/utils/SewTiffs.java

    r2765 r3456  
    5757 
    5858        // preserve TIFF comment 
    59         Object descObj = 
    60           TiffTools.getIFDValue(ifd, TiffTools.IMAGE_DESCRIPTION); 
    61         String desc = null; 
    62         if (descObj instanceof String) desc = (String) descObj; 
    63         else if (descObj instanceof String[]) desc = ((String[]) descObj)[0]; 
     59        String desc = TiffTools.getComment(ifd); 
    6460 
    6561        if (desc != null) { 
Note: See TracChangeset for help on using the changeset viewer.