Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion howdy/debian/install
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ src/rubberstamps/. lib/security/howdy/rubberstamps
src/cli.py lib/security/howdy
src/compare.py lib/security/howdy
src/i18n.py lib/security/howdy
src/logo.png lib/security/howdy
src/logo.png usr/share/howdy
src/snapshot.py lib/security/howdy

build/pam_howdy.so lib/security/howdy
Expand Down
13 changes: 8 additions & 5 deletions howdy/src/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ def generate(frames, text_lines):
if len(frames) > 1:
# Load the logo from file
logo = cv2.imread(paths_factory.logo_path())
# Calculate the position of the logo
logo_y = frame_height + 20
logo_x = frame_width * len(frames) - 210

# Make sure the logo is loaded
if logo is not None:
# Calculate the position of the logo
logo_y = frame_height + 20
logo_x = frame_width * len(frames) - 210

# Overlay the logo on top of the image
snap[logo_y:logo_y+57, logo_x:logo_x+180] = logo
# Overlay the logo on top of the image
snap[logo_y:logo_y+57, logo_x:logo_x+180] = logo

# Go through each line
line_number = 0
Expand Down