Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix size of portrait images with the SIZE_NORMAL setting. #7188

Merged
merged 3 commits into from
Nov 29, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/settings/enums/ImageSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// For Large the image gets drawn as big as possible.
// constraint by: timeline width, manual heigh overrides, SIZE_LARGE.h
toger5 marked this conversation as resolved.
Show resolved Hide resolved
const SIZE_LARGE = { w: 800, h: 600 };
const SIZE_NORMAL = { w: 324, h: 220 };

// For Normal the image gets drawn to never exceed SIZE_NORMAL.w, SIZE_NORMAL.h
// constraint by: timeline width, manual heigh overrides
toger5 marked this conversation as resolved.
Show resolved Hide resolved
const SIZE_NORMAL = { w: 324, h: 324 * (16/9) }; // Portrait images should be the same width than landscape

export enum ImageSize {
Normal = "normal",
Expand Down