diff --git a/src/main/ogres/app/provider/image.cljs b/src/main/ogres/app/provider/image.cljs index af93f519..98b5fab5 100644 --- a/src/main/ogres/app/provider/image.cljs +++ b/src/main/ogres/app/provider/image.cljs @@ -61,7 +61,7 @@ given an image type and quality ratio in the form of a map whose keys are 'data', 'hash', 'width', and 'height'." ([^js/HTMLCanvasElement canvas] - (extract-image canvas "image/jpeg" 0.80)) + (extract-image canvas "image/webp" 0.80)) ([^js/HTMLCanvasElement canvas type quality] (js/Promise. (fn [resolve] @@ -83,7 +83,7 @@ 2. The image extracted from the file 3. The image, cropped and resized to be used as a thumbnail" ([^js/File file] - (process-file file "image/jpeg" 0.80)) + (process-file file "image/webp" 0.80)) ([^js/File file type quality] (.then (js/createImageBitmap file) (fn [image]