Update FromPDFController.java

This commit is contained in:
Anthony Stirling 2023-01-28 12:49:37 +00:00 committed by GitHub
parent ae638eec94
commit cada1fd80f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ public class FromPDFController {
private String getMediaType(String imageFormat) { private String getMediaType(String imageFormat) {
if(imageFormat.equalsIgnoreCase("PNG")) if(imageFormat.equalsIgnoreCase("PNG"))
return "image/png"; return "image/png";
else if(imageFormat.equalsIgnoreCase("JPEG")) else if(imageFormat.equalsIgnoreCase("JPEG") || imageFormat.equalsIgnoreCase("JPG") )
return "image/jpeg"; return "image/jpeg";
else if(imageFormat.equalsIgnoreCase("GIF")) else if(imageFormat.equalsIgnoreCase("GIF"))
return "image/gif"; return "image/gif";