failures = new TreeMap<>();
try {
- for (File inFile : inFiles) {
- /* Delete eventual previous result file */
- File outFile = new File(outDir, inFile.getName() + "." + ext);
- if (outFile.exists()) {
- outFile.delete();
- }
-
- byte[] resourceb = getBytes(inFile);
- String urlString = inFile.getAbsolutePath();
- EncodedImage img = null;
- Exception error = null;
- try {
- img = ViewImage.parseAndScale(post, true, urlString, ext, false, resourceb);
- } catch (Exception e) {
- error = e;
- }
-
- if (img == null) {
- failures.put(urlString, error);
- } else {
- FileOutputStream outFileStream = null;
- try {
- outFileStream = new FileOutputStream(outFile);
- img.getImage().writeTo(outFileStream);
- } finally {
- if (outFileStream != null) {
- outFileStream.close();
- }
- img.getImage().close();
- }
- }
- }
- displayResults(inFiles, failures);
+ long time = System.nanoTime();
+ test.processFiles(ext, recursive, outDir, post, inFiles, processedFiles, failures);
+ time = System.nanoTime() - time;
+ test.displayResults(processedFiles, failures, time, outDir);
} finally {
ConcurrentLog.shutdown();
}
diff --git a/test/viewImageTest/ViewImageTest.html b/test/viewImageTest/ViewImageTest.html
index 547152cc7..efdfd96da 100644
--- a/test/viewImageTest/ViewImageTest.html
+++ b/test/viewImageTest/ViewImageTest.html
@@ -70,7 +70,8 @@ td {
.png |
Portable Network Graphics |
RFC 2083 |
- Pngsuite |
+ Pngsuite,
+ imagetestsuite |
|
APNG
Specification |
- APNG tests |
+ APNG
+ tests |
|
Joint Photographic Experts Group |
|
- |
+ imagetestsuite |
|
Graphics Interchange Format |
|
- |
+ imagetestsuite |
|
Windows Bitmap |
|
- |
+ bmpsuite,
+ The Bitmap Test
+ suite |
|
libtiff,
TwelveMonkeys |
+ href="https://github.com/haraldk/TwelveMonkeys/tree/master/imageio/imageio-tiff/src/test/resources/tiff">TwelveMonkeys,
+ imagetestsuite
|