Made char rotate
This commit is contained in:
1 parent
4914ec6168
commit
91caebd385
11 files changed
+174
-52
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user