audittool/test-lib/src/main/java/io/bdrc/audit/audittests/EXIFTest.java
private List<ImageEXIFBead> validateEXIF(ImageEXIFAttributes imageExif) {
            List<ImageEXIFBead> failedEXIFs = new ArrayList<>();

            // Test for orientation. This is the only test so far
            imageExif.getExifAttributes().forEach( b -> {
                if (b.getTagNumber() == ImageEXIFAttributes.ORIENTATION_TAG) {
                    validOrientation(b,failedEXIFs);
                }

                // Add other tests here
            });
            return failedEXIFs;
        }
/**
         * Validates an image EXIF data is acceptable.
         * @param imageExif Captured EXIF data
         * @return the list of EXIF attributes which failed.
         * Tests:
         * - Orientation, if present, must be "up" (0x1)
         */
Validates an image EXIF data is acceptable.
@param imageExif Captured EXIF data
@return the list of EXIF attributes which failed.
Tests:
- Orientation, if present, must be "up" (0x1)
Validates an image EXIF data is acceptable . @param imageExif Captured EXIF data @return the list of EXIF attributes which failed . Tests : - Orientation if present must be " up " ( 0x1 )
private List<ImageEXIFBead> validateEXIF(ImageEXIFAttributes imageExif) {
            List<ImageEXIFBead> failedEXIFs = new ArrayList<>();
            imageExif.getExifAttributes().forEach( b -> {
                if (b.getTagNumber() == ImageEXIFAttributes.ORIENTATION_TAG) {
                    validOrientation(b,failedEXIFs);
                }
            });
            return failedEXIFs;
        }
private List < ImageEXIFBead > validateEXIF ( ImageEXIFAttributes imageExif ) { List < ImageEXIFBead > failedEXIFs = new ArrayList < > ( ) ; imageExif . getExifAttributes ( ) . forEach ( b -> { if ( b . getTagNumber ( ) == ImageEXIFAttributes . ORIENTATION_TAG ) { validOrientation ( b , failedEXIFs ) ; } } ) ; return failedEXIFs ; }
Validates an image EXIF data is acceptable.
Validates an image EXIF data is acceptable .
// Test for orientation. This is the only test so far // Add other tests here