Merge pull request #4 from Frooodle/Frooodle-patch-1

Frooodle patch 1
This commit is contained in:
Anthony Stirling 2023-01-28 12:49:53 +00:00 committed by GitHub
commit 5c41c952b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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";

View file

@ -24,8 +24,8 @@
<div class="form-group"> <div class="form-group">
<label>Image Format</label> <select class="form-control" <label>Image Format</label> <select class="form-control"
name="imageFormat"> name="imageFormat">
<option value="jpg">JPEG</option>
<option value="png">PNG</option> <option value="png">PNG</option>
<option value="jpg">JPEG</option>
<option value="gif">GIF</option> <option value="gif">GIF</option>
</select> </select>
</div> </div>