-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Tested on windows, and if images are copied from firefox, imagegrab is unable to detect pixel data. Apparently due to mime type information firefox adds?
- OS: Windows 11
- Python: 3.11.11 (main, Feb 11 2025, 07:53:58) [MSC v.1929 64 bit (AMD64)]
- Pillow: 11.2.1
Please paste here the output of running:
--- PIL CORE support ok, compiled for 11.2.1
*** TKINTER support not installed
--- FREETYPE2 support ok, loaded 2.13.3
--- LITTLECMS2 support ok, loaded 2.17
--- WEBP support ok, loaded 1.5.0
*** AVIF support not installed
--- JPEG support ok, compiled for libjpeg-turbo 3.1.0
--- OPENJPEG (JPEG2000) support ok, loaded 2.5.3
--- ZLIB (PNG/ZIP) support ok, loaded 1.3.1.zlib-ng, compiled for zlib-ng 2.2.4
--- LIBTIFF support ok, loaded 4.7.0
*** RAQM (Bidirectional Text) support not installed
*** LIBIMAGEQUANT (Quantization method) support not installed
*** XCB (X protocol) support not installed
--------------------------------------------------------------------
Code to reproduce:
img = ImageGrab.grabclipboard()
steps to reproduce:
copy image from firefox
use above code to read it.