Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Aspect Ratio setting to resize + crop media #107

Merged
merged 9 commits into from
Apr 12, 2021
Merged

Conversation

bjtitus
Copy link
Collaborator

@bjtitus bjtitus commented Apr 8, 2021

WordPress PR: wordpress-mobile/WordPress-iOS#16229

  • Adds a new CameraSettings.aspectRatio value
  • Constrains player and editor views to the CameraSettings.aspectRatio value.

@bjtitus bjtitus self-assigned this Apr 8, 2021
@bjtitus bjtitus added the stories Related to the Stories project label Apr 8, 2021
@@ -133,6 +137,11 @@ final class EditorView: UIView, MovableViewCanvasDelegate, MediaPlayerViewDelega

weak var playerView: MediaPlayerView?

var exportSize: CGSize {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exports media to the same size we are displaying to the user.

@bjtitus bjtitus requested a review from danielebogo April 8, 2021 20:49
@bjtitus bjtitus marked this pull request as ready for review April 8, 2021 20:50
# Conflicts:
#	Classes/Editor/EditorView.swift
@bjtitus bjtitus merged commit bc3dff5 into main Apr 12, 2021
@bjtitus bjtitus deleted the stories/aspect-ratio branch April 12, 2021 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stories Related to the Stories project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants