Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-12

Tiff (exif) tags of type double written in wrong byte order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-alpha1
    • None
    • None
    • Tested under Windows XP. Potentally all platforms.

    Description

      Reviewing BinaryFileFunctions.java method convertDoubleToByteArray and convertDoubleArrayToByteArray there are two blocks of code, one for BYTE_ORDER_MOTOROLA (big endian) and one for BYTE_ORDER_INTEL (little endian). These are backwards.

      The convertByteArrayToDouble, on the other hand appears to be correct. A reasonable test procedure would be to see if these two sets of methods are mutually consistent.

      The same problem appears to be the case for the "Float" variants, but not the Integer variants.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gwlucas Gary Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: