Compare commits
2 Commits
v1.1.0-rc.
...
v1.1.0-rc.
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a87318b12 | |||
| 93cb12d7d9 |
@@ -28,6 +28,6 @@ export default function imgproxyLoader({
|
||||
return getImgproxyUrl(src, {
|
||||
width,
|
||||
resizing_type: 'fit',
|
||||
gravity: 'fv', // Use face-aware focusing (face detection)
|
||||
gravity: 'sm', // Use smart gravity (content-aware) instead of face detection (requires ML)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -60,5 +60,5 @@ export function getImgproxyUrl(src: string, options: ImgproxyOptions = {}): stri
|
||||
// Format: <base_url>/unsafe/<options>/plain/<source_url>[@<extension>]
|
||||
const suffix = extension ? `@${extension}` : '';
|
||||
|
||||
return `${baseUrl}/unsafe/${processingOptions}/plain/${absoluteSrc}${suffix}`;
|
||||
return `${baseUrl}/unsafe/${processingOptions}/plain/${encodeURIComponent(absoluteSrc)}${suffix}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user