Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Add webp images to upload accept list.

comfyanonymous60b4c31ab3c2
diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js
index 5f5043cd0..d1a9c6c6e 100644
--- a/web/scripts/widgets.js
+++ b/web/scripts/widgets.js
@@ -306,7 +306,7 @@ export const ComfyWidgets = {
const fileInput = document.createElement("input");
Object.assign(fileInput, {
type: "file",
- accept: "image/jpeg,image/png",
+ accept: "image/jpeg,image/png,image/webp",
style: "display: none",
onchange: async () => {
if (fileInput.files.length) {