public String getCompressionLevelDescription() throws MetadataException
{
if (!_directory.containsTag(ExifDirectory.TAG_COMPRESSION_LEVEL)) return null;
Rational compressionRatio = _directory.getRational(ExifDirectory.TAG_COMPRESSION_LEVEL);
String ratio = compressionRatio.toSimpleString(_allowDecimalRepresentationOfRationals);
if (compressionRatio.isInteger() && compressionRatio.intValue() == 1) {
return ratio + " bit/pixel";
} else {
return ratio + " bits/pixel";
}
}