Now uploads webp's.
This commit is contained in:
parent
94cabeb695
commit
1f628e4648
2
pom.xml
2
pom.xml
|
@ -120,6 +120,7 @@
|
||||||
<groupId>com.twelvemonkeys.imageio</groupId>
|
<groupId>com.twelvemonkeys.imageio</groupId>
|
||||||
<artifactId>imageio-webp</artifactId>
|
<artifactId>imageio-webp</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Needed only if you deploy ImageIO plugins as part of a web app.
|
<!-- Needed only if you deploy ImageIO plugins as part of a web app.
|
||||||
Make sure you add the IIOProviderContextListener to your web.xml.
|
Make sure you add the IIOProviderContextListener to your web.xml.
|
||||||
|
@ -128,6 +129,7 @@
|
||||||
<groupId>com.twelvemonkeys.servlet</groupId>
|
<groupId>com.twelvemonkeys.servlet</groupId>
|
||||||
<artifactId>servlet</artifactId>
|
<artifactId>servlet</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,8 @@ import org.springframework.http.HttpStatus;
|
||||||
"com.mousetech.gourmetj.persistence.model" })
|
"com.mousetech.gourmetj.persistence.model" })
|
||||||
public class SpringPrimeFacesApplication {
|
public class SpringPrimeFacesApplication {
|
||||||
|
|
||||||
|
private static final String IMAGE_IIO_PROVIDER_CONTEXT_LISTENER =
|
||||||
|
"com.twelvemonkeys.servlet.image.IIOProviderContextListener";
|
||||||
final String errorPage = "/error/error.html";
|
final String errorPage = "/error/error.html";
|
||||||
final String error404Page = "/error/error404.html";
|
final String error404Page = "/error/error404.html";
|
||||||
final String expiredPage = "/error/viewExpired.xhtml";
|
final String expiredPage = "/error/viewExpired.xhtml";
|
||||||
|
@ -50,7 +52,7 @@ public class SpringPrimeFacesApplication {
|
||||||
servletContext.setInitParameter(
|
servletContext.setInitParameter(
|
||||||
"primefaces.UPLOADER", "native");
|
"primefaces.UPLOADER", "native");
|
||||||
|
|
||||||
servletContext.addListener("com.twelvemonkeys.servlet.image.IIOProviderContextListener");
|
servletContext.addListener(IMAGE_IIO_PROVIDER_CONTEXT_LISTENER);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user