Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/ogres/app/provider/image.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down