Skip to content

[BUG] Export size estimate always uses 1920×1080 — PRESET_DIMENSIONS keys don't match actual preset IDs #1156

@Kr1491

Description

@Kr1491

Bug description
src/lib/exportEstimate.ts defines a PRESET_DIMENSIONS lookup table with keys like "1080p", "720p", "square-1080", "portrait-1080" — but the actual preset IDs in src/lib/presets.ts are "landscape-16-9", "vertical-9-16", "square-1-1", "twitter-hd" etc. Because none of the keys match, getOutputDimensions() always falls through to the customWidth/customHeight fallback of 1920×1080, making the estimated export size wrong for every preset except landscape 16:9.

Steps to reproduce

  1. Go to the app and upload any video
  2. Select any preset e.g. "9:16 Vertical"
  3. Check the estimated export file size shown in the UI
  4. Switch to "16:9 Landscape" — the estimate is identical despite being a completely different resolution

Expected behavior
Each preset should show a different estimated file size based on its actual resolution (e.g. 9:16 at 1080×1920, 1:1 at 1080×1080, etc.)

Actual behavior
Every preset shows the same file size estimate as 16:9 Landscape (1920×1080) because PRESET_DIMENSIONS keys never match the actual preset IDs, so it always falls back to 1920×1080.

Browser and OS info

  • OS: Any
  • Browser: Any
  • Version: Any

Video format (if relevant)

  • Input video format: Any
  • Export preset used: Any (except Landscape 16:9)
  • File size: Any

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlytype:bugBug fixtype:designUI/UX design

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions