You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2023/01/16 21:10:23 UTC
[commons-imaging] 02/02: since we use a pngImageParser the tmp file must be named with .png instead of gif
This is an automated email from the ASF dual-hosted git repository.
kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit eb102a0a7b8677e16a1f588da1cce6f0af2d6c8b
Author: Bruno P. Kinoshita <ki...@users.noreply.github.com>
AuthorDate: Wed May 11 06:46:54 2022 +0200
since we use a pngImageParser the tmp file must be named with .png instead of gif
---
.../apache/commons/imaging/formats/png/PngWriteForceTrueColorText.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/imaging/formats/png/PngWriteForceTrueColorText.java b/src/test/java/org/apache/commons/imaging/formats/png/PngWriteForceTrueColorText.java
index 0bd0a7b9..9876513c 100644
--- a/src/test/java/org/apache/commons/imaging/formats/png/PngWriteForceTrueColorText.java
+++ b/src/test/java/org/apache/commons/imaging/formats/png/PngWriteForceTrueColorText.java
@@ -50,7 +50,7 @@ public class PngWriteForceTrueColorText extends PngBaseTest {
final BufferedImage image = pngImageParser.getBufferedImage(imageFile, new PngImagingParameters());
assertNotNull(image);
- final File outFile = Files.createTempFile(imageFile.getName() + ".", ".gif").toFile();
+ final File outFile = Files.createTempFile(imageFile.getName() + ".", ".png").toFile();
// Debug.debug("outFile", outFile);
final PngImagingParameters params = new PngImagingParameters();