diff options
author | bobzel <zzzman@gmail.com> | 2023-12-07 20:12:38 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-07 20:12:38 -0500 |
commit | a7a7a5c3e310af00f936933d7c67e1892539e278 (patch) | |
tree | 76cd4f45d38ceb489e9dfad7521d219bbac9c8ed /src | |
parent | 0adf05851b86b54b4414cad28b2975f533e45b9f (diff) |
fixed where thumbnail and other image uris get placed on server.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/ApiManagers/UploadManager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/ApiManagers/UploadManager.ts b/src/server/ApiManagers/UploadManager.ts index c3b8643d3..9b0457a25 100644 --- a/src/server/ApiManagers/UploadManager.ts +++ b/src/server/ApiManagers/UploadManager.ts @@ -349,7 +349,7 @@ export default class UploadManager extends ApiManager { Jimp.read(savedName).then(img => (!origSuffix ? [{ width: 400, suffix: SizeSuffix.Medium }] : Object.values(DashUploadUtils.Sizes)) // .forEach(({ width, suffix }) => { - const outputPath = InjectSize(filename, suffix); + const outputPath = serverPathToFile(Directory.images, InjectSize(filename, suffix) + ext); if (!width) createReadStream(savedName).pipe(createWriteStream(outputPath)); else img = img.resize(width, Jimp.AUTO).write(outputPath); }) |