We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd640c7 commit 74cd71dCopy full SHA for 74cd71d
1 file changed
ani2xcur/cursor_conversion/native_cursor/writers.py
@@ -235,7 +235,11 @@ def _is_high_res_cursor_image(cursor: CursorImage) -> bool:
235
236
237
def _is_grayscale_rgba(image: Image.Image) -> bool:
238
- for red, green, blue, _ in image.getdata():
+ pixels = image.convert("RGBA").tobytes()
239
+ for index in range(0, len(pixels), 4):
240
+ red = pixels[index]
241
+ green = pixels[index + 1]
242
+ blue = pixels[index + 2]
243
if red != green or red != blue:
244
return False
245
return True
0 commit comments