Skip to content

Commit eacc42a

Browse files
committed
Don't try to resize SVG images
1 parent 0603f11 commit eacc42a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/api/v1/AttachmentsController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ export default class AttachmentsController {
241241
response.width = prv.w;
242242
response.height = prv.h;
243243

244-
// With imgproxy, we can resize images and change their format
245-
if (type === 'image' && useImgProxy) {
244+
// With imgproxy, we can resize images (except SVG) and change their format
245+
if (useImgProxy && type === 'image' && attachment.fileExtension !== 'svg') {
246246
let { format } = query;
247247

248248
if (!format) {

0 commit comments

Comments
 (0)