Skip to content

Commit

Permalink
fix(asset-server-plugin): Change image format with no other transforms (
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfrantz1 authored Mar 29, 2023
1 parent 2df139b commit 6cf1608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/asset-server-plugin/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ export class AssetServerPlugin implements NestModule, OnApplicationBootstrap {
if (this.presets && !!this.presets.find(p => p.name === preset)) {
imageParamHash = this.md5(`_transform_pre_${preset}${focalPoint}${imageFormat}`);
}
} else if (imageFormat) {
imageParamHash = this.md5(`_transform_${imageFormat}`);
}

const decodedReqPath = decodeURIComponent(req.path);
Expand Down

0 comments on commit 6cf1608

Please sign in to comment.