From cada1fd80fc5179c4b2f2958b0423cf1c4668243 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 28 Jan 2023 12:49:37 +0000 Subject: [PATCH] Update FromPDFController.java --- .../stirling/software/SPDF/controller/FromPDFController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/stirling/software/SPDF/controller/FromPDFController.java b/src/main/java/stirling/software/SPDF/controller/FromPDFController.java index 7f0ede1c..17a28c27 100644 --- a/src/main/java/stirling/software/SPDF/controller/FromPDFController.java +++ b/src/main/java/stirling/software/SPDF/controller/FromPDFController.java @@ -42,7 +42,7 @@ public class FromPDFController { private String getMediaType(String imageFormat) { if(imageFormat.equalsIgnoreCase("PNG")) return "image/png"; - else if(imageFormat.equalsIgnoreCase("JPEG")) + else if(imageFormat.equalsIgnoreCase("JPEG") || imageFormat.equalsIgnoreCase("JPG") ) return "image/jpeg"; else if(imageFormat.equalsIgnoreCase("GIF")) return "image/gif";