We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00c2ade commit b553b74Copy full SHA for b553b74
app/support/media-files/detect.ts
@@ -17,7 +17,7 @@ export async function detectMediaType(
17
try {
18
const out = await spawnAsync('identify', [
19
['-format', '%m %W %H %[orientation] %n|'],
20
- localFilePath,
+ `${localFilePath}[0,1]`, // Select only up to 2 first frames to reduce the memory usage
21
]);
22
23
// Select only the first values sequence (there could be more for animated images)
0 commit comments