Skip to content

Commit ce29c19

Browse files
predefined sizes based on camera v1 and v2. defaults to full size
1 parent 54dce66 commit ce29c19

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/constants.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,22 @@
3434
# None: simple shot
3535
# Four: Collage of four shots
3636
# Animation : animated gif
37+
v2_full_size = (3280,2464)
38+
v2_half_size = (1640,1232)
39+
v2_quarter_size = (820,616)
40+
41+
v1_full_size = (2592,1944)
42+
v1_half_size = (1296,972)
43+
v1_quarter_size = (648,486)
44+
3745
EFFECTS_PARAMETERS = {
3846
"None": {
39-
'snap_size' : (1640,1232), #(width, height) => preferably use integer division of camera resolution
47+
'snap_size' : v2_full_size, #(width, height) => preferably use integer division of camera resolution
4048
'logo_size' : 128, # height in pixels of the logo (will be thumbnailed to this size)
4149
'logo_padding' : 32 # bottom and right padding of the logo (pixels)
4250
},
4351
"Four": {
44-
'snap_size' : (820,616), #(width, height) of each shots of the 2x2 collage
52+
'snap_size' : v2_half_size, #(width, height) of each shots of the 2x2 collage
4553
'foreground_image' : "collage_four_square.png" # Overlay image on top of the collage
4654
},
4755
"Animation": {

0 commit comments

Comments
 (0)