Skip to content

Commit

Permalink
removing unwanted files
Browse files Browse the repository at this point in the history
  • Loading branch information
kredcool committed Dec 13, 2024
1 parent 0d49b6c commit 0589d3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
Binary file not shown.
28 changes: 0 additions & 28 deletions admin_bot/admin_bot/utilities/image_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,6 @@ def whiteboard_task(input_image: Image.Image) -> Image.Image:
return background


@register_image_task("keegan")
def keegan_task(input_image: Image.Image) -> Image.Image:
"""
Keegan transformations lol!
"""
# Load the foreground overlay (ensure it has an alpha channel)
foreground = Image.open(
"admin_bot/resources/what_is_keegan_looking_at/fore.png"
).convert("RGBA")

# Create a new blank RGBA image with the same size as the foreground
result_image = Image.new("RGBA", foreground.size, (0, 0, 0, 0)) # Fully transparent

# Resize image to fit screen
resized_image = input_image.resize((1550, 900))

# Rotate image counterclockwise by 38.2 degrees
rotated_image = resized_image.rotate(38.2, expand=True)

# Paste the rotated image onto the result image
result_image.paste(rotated_image, (240, 780))

# Place the foreground on top
result_image.paste(foreground, (0, 0), foreground)

return result_image


@register_image_task("dylan")
def dylan_task(input_image: Image.Image) -> Image.Image:
"""
Expand Down

0 comments on commit 0589d3e

Please sign in to comment.