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
- Go to the app and upload any video
- Select any preset e.g. "9:16 Vertical"
- Check the estimated export file size shown in the UI
- 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
Bug description
src/lib/exportEstimate.tsdefines aPRESET_DIMENSIONSlookup table with keys like"1080p","720p","square-1080","portrait-1080"— but the actual preset IDs insrc/lib/presets.tsare"landscape-16-9","vertical-9-16","square-1-1","twitter-hd"etc. Because none of the keys match,getOutputDimensions()always falls through to thecustomWidth/customHeightfallback of 1920×1080, making the estimated export size wrong for every preset except landscape 16:9.Steps to reproduce
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_DIMENSIONSkeys never match the actual preset IDs, so it always falls back to 1920×1080.Browser and OS info
Video format (if relevant)