commit
5c41c952b6
2 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue