Skip to content

Commit

Permalink
ensure all assets are exactly 1080p, not just videos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Dec 26, 2024
1 parent 261ea66 commit 05edec1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,12 @@ def content_upload():
"Boolean": {
"asset:exists": False,
},
"NumericEquals": {
"asset:metadata:width": 1920,
"asset:metadata:height": 1080,
},
}
if filetype == "image":
condition.setdefault("NumericEquals", {}).update(
{
"asset:metadata:width": 1920,
"asset:metadata:height": 1080,
}
)
condition.setdefault("StringEquals", {}).update(
{
"asset:metadata:format": "jpeg",
Expand Down

0 comments on commit 05edec1

Please sign in to comment.