Skip to content

Commit

Permalink
imageMagick this fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xziy committed Jul 31, 2023
1 parent 3b34cc7 commit f49f477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adapters/mediafile/default/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function resizeMediaFile({ srcPath, dstPath, size, customArgs }) {
resizeWidth = size;
resizeHeight = Math.round(size * (dimensions.height / dimensions.width));
}
this.resize(resizeWidth, resizeHeight)
imageMagick.resize(resizeWidth, resizeHeight)
.out(...customArgs)
.write(dstPath, (err) => {
if (err) {
Expand Down
2 changes: 1 addition & 1 deletion adapters/mediafile/default/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function resizeMediaFile({ srcPath, dstPath, size, customArgs }: ResizeMediaFile
resizeHeight = Math.round(size * (dimensions.height / dimensions.width));
}

this.resize(resizeWidth, resizeHeight)
imageMagick.resize(resizeWidth, resizeHeight)
.out(...customArgs)
.write(dstPath, (err) => {
if (err) {
Expand Down

0 comments on commit f49f477

Please sign in to comment.