Skip to content

Commit

Permalink
Fix to export dialog to use the correct profile size, before exportin…
Browse files Browse the repository at this point in the history
…g - to prevent stretching the image of certain clips. This was stretching images when exporting a horizontal project to a vertical profile.
  • Loading branch information
jonoomph committed Feb 10, 2023
1 parent 419aa10 commit 2d0c22f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/windows/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,6 @@ def titlestring(sec, fps, mess):
# Mark project file as unsaved
get_app().project.has_unsaved_changes = True

# Set MaxSize (so we don't have any downsampling)
self.timeline.SetMaxSize(video_settings.get("width"), video_settings.get("height"))

# Set lossless cache settings (temporarily)
export_cache_object = openshot.CacheMemory(500)
self.timeline.SetCache(export_cache_object)
Expand All @@ -903,8 +900,11 @@ def titlestring(sec, fps, mess):
# Load the "export" Timeline reader with the JSON from the real timeline
self.timeline.SetJson(json.dumps(rescaled_app_data))

# Re-update the timeline FPS again (since the timeline just got clobbered)
self.updateFrameRate()
# Re-update the timeline FPS again (since the timeline just got clobbered)
self.updateFrameRate()

# Set MaxSize (so we don't have any downsampling)
self.timeline.SetMaxSize(video_settings.get("width"), video_settings.get("height"))

# Apply mappers to timeline readers
self.timeline.ApplyMapperToClips()
Expand Down

0 comments on commit 2d0c22f

Please sign in to comment.