Skip to content

Commit

Permalink
fix(api-file-manager-s3): use withoutEnlargement when resizing images
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Jul 3, 2024
1 parent 2363220 commit 0b8430c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class SharpTransform implements AssetTransformationStrategy {
const buffer = await optimizedImage.getContents();
const transformedBuffer = sharp(buffer, { animated: this.isAssetAnimated(asset) })
.withMetadata()
.resize({ width })
.resize({ width, withoutEnlargement: true })
.toBuffer();

/**
Expand Down

0 comments on commit 0b8430c

Please sign in to comment.