Skip to content

Commit 2d0c22f

Browse files
committed
Fix to export dialog to use the correct profile size, before exporting - to prevent stretching the image of certain clips. This was stretching images when exporting a horizontal project to a vertical profile.
1 parent 419aa10 commit 2d0c22f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/windows/export.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,6 @@ def titlestring(sec, fps, mess):
888888
# Mark project file as unsaved
889889
get_app().project.has_unsaved_changes = True
890890

891-
# Set MaxSize (so we don't have any downsampling)
892-
self.timeline.SetMaxSize(video_settings.get("width"), video_settings.get("height"))
893-
894891
# Set lossless cache settings (temporarily)
895892
export_cache_object = openshot.CacheMemory(500)
896893
self.timeline.SetCache(export_cache_object)
@@ -903,8 +900,11 @@ def titlestring(sec, fps, mess):
903900
# Load the "export" Timeline reader with the JSON from the real timeline
904901
self.timeline.SetJson(json.dumps(rescaled_app_data))
905902

906-
# Re-update the timeline FPS again (since the timeline just got clobbered)
907-
self.updateFrameRate()
903+
# Re-update the timeline FPS again (since the timeline just got clobbered)
904+
self.updateFrameRate()
905+
906+
# Set MaxSize (so we don't have any downsampling)
907+
self.timeline.SetMaxSize(video_settings.get("width"), video_settings.get("height"))
908908

909909
# Apply mappers to timeline readers
910910
self.timeline.ApplyMapperToClips()

0 commit comments

Comments
 (0)