From fcbc51ae0a6651d80d3565e4c92a790aa27e2137 Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 1 Nov 2024 19:13:21 -0400 Subject: [PATCH] Fix barcode4j docs image --- .../runtime/src/main/resources/META-INF/quarkus-extension.yaml | 2 +- .../src/main/java/io/quarkiverse/barcode/it/OkapiResource.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext-barcode4j/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/ext-barcode4j/runtime/src/main/resources/META-INF/quarkus-extension.yaml index ff96319..6d294d7 100644 --- a/ext-barcode4j/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/ext-barcode4j/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -12,4 +12,4 @@ metadata: - "quarkus.barcode.barcode4j." status: "stable" guide: "https://docs.quarkiverse.io/quarkus-barcode/dev/index.html" - icon-url: "http://primefaces-extensions.github.io/images/barcode4j-logo.gif" + icon-url: "https://raw.githubusercontent.com/quarkiverse/quarkus-barcode/main/docs/modules/ROOT/assets/images/barcode4j.svg" \ No newline at end of file diff --git a/ext-okapi/integration-tests/src/main/java/io/quarkiverse/barcode/it/OkapiResource.java b/ext-okapi/integration-tests/src/main/java/io/quarkiverse/barcode/it/OkapiResource.java index 4fe1413..73c7210 100644 --- a/ext-okapi/integration-tests/src/main/java/io/quarkiverse/barcode/it/OkapiResource.java +++ b/ext-okapi/integration-tests/src/main/java/io/quarkiverse/barcode/it/OkapiResource.java @@ -59,6 +59,7 @@ public Response code128() throws IOException { Graphics2D g2d = image.createGraphics(); Java2DRenderer renderer = new Java2DRenderer(g2d, 1, Color.WHITE, Color.BLACK); renderer.render(barcode); + g2d.dispose(); ImageIO.write(image, "png", outputStream); @@ -90,4 +91,4 @@ private Code128 createCode128() { barcode.setContent("123456789"); return barcode; } -} +} \ No newline at end of file