Made char rotate

This commit is contained in:
2024-11-25 22:12:03 -06:00
parent 4914ec6168
commit 91caebd385
11 changed files with 174 additions and 52 deletions

View File

@ -33,7 +33,8 @@ if not os.path.exists(args.input):
img = Image.open(args.input)
# Normalize the image
hasAlpha = img.mode == 'RGBA' or img.mode == 'LA'
# output img.info
hasAlpha = 'transparency' in img.info
# Convert the image to RGB or RGBA mode based on alpha channel
if hasAlpha: