fix: hide incompatible animated image settings

This commit is contained in:
Maya 2026-05-03 22:26:45 +03:00
parent c505aefd06
commit a739dfb9dd
No known key found for this signature in database
1 changed files with 16 additions and 11 deletions

View File

@ -711,17 +711,22 @@ export class VertdConverter extends Converter {
// trim/crop/rotate - also have another ui for this prob
return [
qualitySpeedRange,
videoCodec,
audioCodec,
videoBitrate,
audioBitrate,
fps,
sampleRate,
resolution,
metadata,
];
const animatedImages = [".gif", ".webp", ".apng"];
if (animatedImages.includes(input.from)) {
return [fps, resolution, metadata];
} else {
return [
qualitySpeedRange,
videoCodec,
audioCodec,
videoBitrate,
audioBitrate,
fps,
sampleRate,
resolution,
metadata,
];
}
}
public async getDefaultSettings(