ExifInterface:跳过标签条目,因为标签号未定义,同时压缩图像
ExifInterface: Skip the tag entry since tag number is not defined, While Compress Image
我想压缩一个文件夹中的所有图像,我使用了this Compressor library。
我在压缩文件时收到此类警告,我无法理解我收到此 图像压缩或覆盖接口方法警告。
ExifInterface: Skip the tag entry since tag number is not defined: 544
Skip the tag entry since tag number is not defined: 545
Skip the tag entry since tag number is not defined: 546
Skip the tag entry since tag number is not defined: 547
Skip the tag entry since tag number is not defined: 548
Skip the tag entry since tag number is not defined: 549
Skip the tag entry since tag number is not defined: 2
代码:
@Override
public void setQualityRatio(Integer qualityNum) {
for (int i=0; i<orgFileList.size(); i++){
try {
File file = new Compressor(CompressMultipleActivity.this).setQuality(qualityNum).compressToFile(orgFileList.get(i));
currFileList.set(i, file);
}catch (IOException e){
Toast.makeText(CompressMultipleActivity.this, "Failed to compress image, Try again later!", Toast.LENGTH_SHORT).show();
}
}
}
我的问题是什么?为什么我会收到此警告,我该如何解决?
问题是这个库已经过时了,它使用内置的 ExifInterface
,它缺少很多标签定义,而不是定期更新的 support ExifInterface
。
我想压缩一个文件夹中的所有图像,我使用了this Compressor library。
我在压缩文件时收到此类警告,我无法理解我收到此 图像压缩或覆盖接口方法警告。
ExifInterface: Skip the tag entry since tag number is not defined: 544 Skip the tag entry since tag number is not defined: 545 Skip the tag entry since tag number is not defined: 546 Skip the tag entry since tag number is not defined: 547 Skip the tag entry since tag number is not defined: 548 Skip the tag entry since tag number is not defined: 549 Skip the tag entry since tag number is not defined: 2
代码:
@Override
public void setQualityRatio(Integer qualityNum) {
for (int i=0; i<orgFileList.size(); i++){
try {
File file = new Compressor(CompressMultipleActivity.this).setQuality(qualityNum).compressToFile(orgFileList.get(i));
currFileList.set(i, file);
}catch (IOException e){
Toast.makeText(CompressMultipleActivity.this, "Failed to compress image, Try again later!", Toast.LENGTH_SHORT).show();
}
}
}
我的问题是什么?为什么我会收到此警告,我该如何解决?
问题是这个库已经过时了,它使用内置的 ExifInterface
,它缺少很多标签定义,而不是定期更新的 support ExifInterface
。