Add a log line for debugging

This commit is contained in:
Manav Rathi 2024-05-13 11:35:24 +05:30
parent 957c2a64df
commit b7292f2629
No known key found for this signature in database

View file

@ -94,6 +94,8 @@ export const generateImageThumbnail = async (
let thumbnail: Uint8Array;
do {
await execAsync(command);
// TODO(MR): imagemagick debugging. Remove me after verifying logs.
log.info(`Generated thumbnail using ${command.join(" ")}`);
thumbnail = new Uint8Array(await fs.readFile(outputFilePath));
quality -= 10;
command = generateImageThumbnailCommand(