Skip to content

Commit

Permalink
feat: remove common endcard
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Dec 29, 2023
1 parent 9cdf92b commit 5e1d482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file removed bereal/static/images/endCard.jpg
Binary file not shown.
7 changes: 4 additions & 3 deletions bereal/videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from .logger import logger
from .utils import (
ENDCARD_IMAGE_PATH,
CONTENT_PATH,
ENDCARD_TEMPLATE_IMAGE_PATH,
EXPORTS_PATH,
FONT_BASE_PATH,
Expand Down Expand Up @@ -45,9 +45,10 @@ def create_endcard(n_images: int, font_size: int = 50, offset: int = 110) -> str

draw.text((x, y), text, font=font, fill="white")

img.save(ENDCARD_IMAGE_PATH)
encard_image_path = os.path.join(CONTENT_PATH, "endcard.png")
img.save(encard_image_path)

return ENDCARD_IMAGE_PATH
return encard_image_path


def create_slideshow(
Expand Down

0 comments on commit 5e1d482

Please sign in to comment.