Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: hide incompatible animated image settings

Mayaa739dfb9dd68
diff --git a/src/lib/converters/vertd.svelte.ts b/src/lib/converters/vertd.svelte.ts
index 9d306c6..15bc8af 100644
--- a/src/lib/converters/vertd.svelte.ts
+++ b/src/lib/converters/vertd.svelte.ts
@@ -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(