/**
This method reads the metadata from image file and updates the PhotoInfo record from it
@param f The file to read
*/
void updateFromFileMetadata( File f ) {
ImageIOImage img = ImageIOImage.getImage( f, false, true );
if ( img == null ) {
return;
}
setShootTime( img.getTimestamp() );
// Exposure
setFStop( img.getAperture() );
setShutterSpeed( img.getShutterSpeed() );
setFocalLength( img.getFocalLength() );
setFilmSpeed( img.getFilmSpeed() );
String camera = img.getCamera();
if ( camera.length() > CAMERA_LENGTH ) {
camera = camera.substring( 0, CAMERA_LENGTH );
}
setCamera( camera );