summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-04 11:17:37 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-04 11:23:35 +0200
commit3addc990ae79aaf17d9eda9b5967d9cb94fa79e1 (patch)
treee8930d1ba1eee39d9389404208dbbf3ef4cb958c
parent97f2f60a6a95f946776c50bed092140df1d1bc4e (diff)
downloadpdf-over-3addc990ae79aaf17d9eda9b5967d9cb94fa79e1.tar.gz
pdf-over-3addc990ae79aaf17d9eda9b5967d9cb94fa79e1.tar.bz2
pdf-over-3addc990ae79aaf17d9eda9b5967d9cb94fa79e1.zip
move image util methods to a more suitable place
-rw-r--r--pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java (renamed from pdf-over-commons/src/main/java/at/asit/pdfover/Util.java)4
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/Util.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java
index ff33fb5e..a8740317 100644
--- a/pdf-over-commons/src/main/java/at/asit/pdfover/Util.java
+++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/utils/ImageUtil.java
@@ -1,4 +1,4 @@
-package at.asit.pdfover;
+package at.asit.pdfover.commons.utils;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
@@ -75,7 +75,7 @@ class EXIFRotation {
}
}
-public final class Util {
+public final class ImageUtil {
/**
* ImageIO.read, except it honors EXIF rotation metadata
diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java
index b3b6a0da..bd0ef4d9 100644
--- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java
+++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/Emblem.java
@@ -15,9 +15,9 @@
*/
package at.asit.pdfover.signator;
-import at.asit.pdfover.Util;
// Imports
import at.asit.pdfover.commons.Constants;
+import at.asit.pdfover.commons.utils.ImageUtil;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
@@ -135,7 +135,7 @@ public class Emblem {
emblemProps.setProperty(PROPKEY_ORIG_DIGEST, emblemHsh);
File imgFile = new File(emblemImg);
- BufferedImage img = Util.readImageWithEXIFRotation(imgFile);
+ BufferedImage img = ImageUtil.readImageWithEXIFRotation(imgFile);
img = reduceImageSizeIfNecessary(img, MAX_EMBLEM_WIDTH, MAX_EMBLEM_HEIGHT);
File file = new File(CACHE_DIR, CACHE_IMG_FILENAME);