Browse Source

fix(asset-server-plugin): Change image format with no other transforms (#2104)

jacobfrantz1 2 years ago
parent
commit
6cf1608d75
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/asset-server-plugin/src/plugin.ts

+ 2 - 0
packages/asset-server-plugin/src/plugin.ts

@@ -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);