Skip to content

Commit

Permalink
Don't try to resize SVG images
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Feb 10, 2025
1 parent 0603f11 commit eacc42a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/v1/AttachmentsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ export default class AttachmentsController {
response.width = prv.w;
response.height = prv.h;

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

if (!format) {
Expand Down

0 comments on commit eacc42a

Please sign in to comment.