misc: switch back to thumbnail
This commit is contained in:
1 parent
c6c0236898
commit
eac513858c
2 files changed
+2
-2
No files matched your search
@@ -40,7 +40,7 @@ export const optimizeImageURL = (
|
|||||||
|
|
||||||
if (width > 0) {
|
if (width > 0) {
|
||||||
url.searchParams.append(
|
url.searchParams.append(
|
||||||
'resize',
|
'thumbnail',
|
||||||
findClosestNumber([128, 256, 512, 728, 1024, 1536], width).toString()
|
findClosestNumber([128, 256, 512, 728, 1024, 1536], width).toString()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
const urlObj = new URL(url)
|
const urlObj = new URL(url)
|
||||||
urlObj.searchParams.append('format', 'webp')
|
urlObj.searchParams.append('format', 'webp')
|
||||||
urlObj.searchParams.append(
|
urlObj.searchParams.append(
|
||||||
'resize',
|
'thumbnail',
|
||||||
findClosestNumber(sizes, res || width).toString()
|
findClosestNumber(sizes, res || width).toString()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user