Feature/301 rotate photos #303

Merged
bermudalamb merged 7 commits from feature/301-rotate-photos into main 2026-09-04 14:17:13 -05:00
Showing only changes of commit 3659608abe - Show all commits
+7
View File
@@ -4,6 +4,13 @@ import path from 'path';
import sharp from 'sharp';
import { rotateInPlace } from '../../src/imageProcessing';
// libvips keeps an input file mapped in its operation cache after a pipeline
// finishes, and Windows will not delete a file that still has an open handle —
// so the animated-WebP case, which is the one that ends in a rejection, left
// afterEach unable to remove its own temporary directory. Disabling the cache
// costs these six tests nothing: every one of them reads its file exactly once.
sharp.cache(false);
let dir = '';
beforeEach(async () => {