Skip to content

Commit 32aaea4

Browse files
committed
Update Picviewer CE+.user.js
1 parent cc56ed2 commit 32aaea4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12393,6 +12393,7 @@ ImgOps | https://imgops.com/#b#`;
1239312393
if (!blob.type) return urlToBlob(url, cb, forcePng, tryTimes);
1239412394
let ext = blob.type.replace(/.*image\/([\w\-]+).*/, "$1");
1239512395
if (ext === "text/html" && (blob.size || 0) < 1000) return cb(null, '');
12396+
if (ext === "none") ext = "webp";
1239612397
let conversion = formatDict.get(ext);
1239712398
if (canvas && (conversion || forcePng)) {
1239812399
var self = this;

0 commit comments

Comments
 (0)